找不到模块:skfeature

时间:2019-04-07 22:16:09

标签: python pandas jupyter-notebook

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-48-4e37cfbc2b53> in <module>
      1 import scipy.io
----> 2 from skfeature.function.similarity_based import fisher_score
      3 
      4 score = fisher_score.fisher_score(X_train, y_train)
      5 score

ModuleNotFoundError: No module named 'skfeature'
import scipy.io
from skfeature.function.similarity_based import fisher_score

score = fisher_score.fisher_score(X_train, y_train)
score

想要添加模块sklearn以获得fisher_score。请帮助

1 个答案:

答案 0 :(得分:0)

您需要安装skfeature。为此,请从project's website下载cikit-feature-1.0.0.zip,然后通过运行

进行安装
python setup.py install

如果您正在运行Windows,则可以通过运行

进行安装
setup.py install