python
文章平均质量分 68
mj427
这个作者很懒,什么都没留下…
展开
-
python 学习中的小技术(与matlab不同的地方)
3*3的零矩阵:returnMat = zeros((3,3))原创 2016-05-16 16:32:21 · 470 阅读 · 0 评论 -
SVM学习笔记
1、Y = np.logical_xor(X[:, 0] > 0, X[:, 1] > 0) 生成bool变量序列 2、xx, yy = np.meshgrid(np.linspace(-3, 3, 500), np.linspace(-3, 3, 500)) 生成网格型数据 3、Z = clf.decision_function(np.c_[xx.ravel(), yy.ravel()])原创 2016-09-05 15:42:19 · 481 阅读 · 0 评论 -
集成学习的方法及功能
1、计算feature 在随机树林分类中的重要性 forest = ExtraTreesClassifier(n_estimators=250, random_state=0) forest.fit(X, y) importances = forest.feature_importances_ 2、循环的运用 for idx, clf, tt in zip(produc原创 2016-09-07 14:54:28 · 371 阅读 · 0 评论