ValueError:“max”不是受支持的规范

2024-09-30 06:16:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用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: orthe规范norml1datatransformsklearn

热门问题