xx = [example[x] for example in xxx]功能解析
在学习《Machine Learning in Action》书中的第三章决策树,遇到了featList = [example[i] for example in dataSet]这样一条语句,看半天看不懂,于是直接在python中使用一下,话不所说,直接上图。
在学习《Machine Learning in Action》书中的第三章决策树,遇到了featList = [example[i] for example in dataSet]这样一条语句,看半天看不懂,于是直接在python中使用一下,话不所说,直接上图。