我正在處理文本分類問題(情感分析)。我想知道scikit-learn中是否有任何選項爲功能添加「重量」(作爲衡量重要性的指標)。我查了資料,發現the attribute "coefs" of SVC,定義如下: coef_ array, shape = [n_class-1, n_features]
Weights asigned to the features (coefficien
我跑了網格搜索分類從下面的IPython: http://scikit-learn.org/dev/auto_examples/grid_search_digits.html ,然後試圖通過酸洗序列化,但收到以下回溯: In [6]: with open('clf.pkl', 'wb') as f:
cPickle.dump(clf, f)
...:
-----------