摘要: Linux的脚本需要放在/usr/local/bin目录下[xiaoqiu@s150 /usr/local/bin]$ sudo touch xcall.sh[sudo] password for xiaoqiu:Sorry, try again.[sudo] pas... 阅读全文
posted @ 2017-12-26 22:23 crr121 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Linux的脚本需要放在/usr/local/bin目录下[xiaoqiu@s150 /usr/local/bin]$ sudo touch xcall.sh[sudo] password for xiaoqiu:Sorry, try again.[sudo] pas... 阅读全文
posted @ 2017-12-26 22:23 crr121 阅读(255) 评论(0) 推荐(0) 编辑
摘要: File "E:\Python36\regtree.py", line 45, in chooseBestSplit if len(set(dataSet[:,-1].T.tolist()[0])) == 1: #exit cond 1TypeError: l... 阅读全文
posted @ 2017-12-26 17:11 crr121 阅读(545) 评论(0) 推荐(0) 编辑
摘要: File "E:\Python36\regtree.py", line 45, in chooseBestSplit if len(set(dataSet[:,-1].T.tolist()[0])) == 1: #exit cond 1TypeError: l... 阅读全文
posted @ 2017-12-26 17:11 crr121 阅读(11157) 评论(0) 推荐(0) 编辑
摘要: 矩阵转列表>>> testMatmatrix([[ 1., 0., 0., 0.], [ 0., 1., 0., 0.], [ 0., 0., 1., 0.], [ 0., 0., 0., 1.]])>... 阅读全文
posted @ 2017-12-26 15:05 crr121 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 矩阵转列表>>> testMatmatrix([[ 1., 0., 0., 0.], [ 0., 1., 0., 0.], [ 0., 0., 1., 0.], [ 0., 0., 0., 1.]])>... 阅读全文
posted @ 2017-12-26 15:05 crr121 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 根据某列值进行样本的分类'''dataSet:数据集feature:待划分的特征value:对应的特征值'''def binSplitDataSet(dataSet, feature, value): #dataSet[:,feature]取出该列特征值 ... 阅读全文
posted @ 2017-12-26 11:34 crr121 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 根据某列值进行样本的分类'''dataSet:数据集feature:待划分的特征value:对应的特征值'''def binSplitDataSet(dataSet, feature, value): #dataSet[:,feature]取出该列特征值 ... 阅读全文
posted @ 2017-12-26 11:34 crr121 阅读(131) 评论(0) 推荐(0) 编辑