问题标签 [dictvectorizer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
38 浏览

python - 如何解决模型拟合形状错误dictVectorization?

我正在研究一个 pos 标记问题并使用 LogisticRegressionCV 模型来解决它。我提取了单词的特征并用DictVectorizer(). 但是,在模型拟合时出现错误。部分后model.fit,控制台给出警告和错误:

代码