SKlearn import MLPClassifier fails

前端 未结 4 1996
孤城傲影
孤城傲影 2021-01-03 18:48

I am trying to use the multilayer perceptron from scikit-learn in python. My problem is, that the import is not working. All other modules from scikit-learn are working fine

4条回答
  •  盖世英雄少女心
    2021-01-03 19:01

    I arrived here with the v0.17 problem too. I found a solution using pip here, namely

        pip install git+https://github.com/scikit-learn/scikit-learn.git
    

    I had to execute pip install cython first though.

    However, that installs 0.19.dev0 (currently), but pip list indicates that the latest is 0.18rc2. Rather

        pip install scikit-learn==0.18.rc2
    

    resolved the issue more satisfactorily.

提交回复
热议问题