我使用sklearn.preprocessing.normalizefine与l1和l2规范。我也想试试马克斯,因为它提到:
norm : ‘l1’, ‘l2’, or ‘max’
所以我做了:
X = tfidf.fit_transform(data['Content']) # the matrix articles x max_features(=words)
normed_X = normalize(X, axis=0, norm='max')
得到了这个运行时错误:
^{pr2}$
我做错什么了?在
Tags:
您使用的文档比所使用的库版本更新。
'max'
选项刚刚添加到0.17中。在相关问题 更多 >
编程相关推荐