Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我怎样才能使用;指标.相互“信息”;在scikit';特征选择_Python_Machine Learning_Scikit Learn_Sentiment Analysis - Fatal编程技术网

Python 我怎样才能使用;指标.相互“信息”;在scikit';特征选择

Python 我怎样才能使用;指标.相互“信息”;在scikit';特征选择,python,machine-learning,scikit-learn,sentiment-analysis,Python,Machine Learning,Scikit Learn,Sentiment Analysis,我想使用本页未列出的其他评分功能,然后chi2等 例如metrics.mutual\u info和metrics.balanced\u accurity\u score 如何将它们集成到代码中 感谢您的帮助新的scikit学习版0.18增加了对互信息功能选择的支持。因此,无需使用度量值.mutual\u info。您可以在SelectKBest或SelectPercentile中使用新的评分功能,就像使用chi2一样 X_new = SelectKBest(mutual_info_class

我想使用本页未列出的其他评分功能,然后
chi2

例如
metrics.mutual\u info
metrics.balanced\u accurity\u score

如何将它们集成到代码中


感谢您的帮助

新的scikit学习版0.18增加了对互信息功能选择的支持。因此,无需使用
度量值.mutual\u info
。您可以在
SelectKBest
SelectPercentile
中使用新的评分功能,就像使用
chi2
一样

X_new = SelectKBest(mutual_info_classif, k=100).fit_transform(X, y)
有关重新发送更改的更多信息,请参阅