Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update scikit_learn version to make it work #34

Open
aerijman opened this issue Jan 13, 2022 · 3 comments
Open

update scikit_learn version to make it work #34

aerijman opened this issue Jan 13, 2022 · 3 comments

Comments

@aerijman
Copy link

Hi, I needed to:

pip install "scikit_learn==0.22.2.post1"

to make it run.
Since in the README there are no specifications for the versions, here are the versions that work on python=3.8.8:

biopython==1.79
cycler==0.11.0
fonttools==4.28.5
h5py==3.6.0
joblib==1.1.0
kiwisolver==1.3.2
matplotlib==3.5.1
numpy==1.22.0
packaging==21.3
pandas==1.3.5
Pillow==9.0.0
pyparsing==3.0.6
pysam==0.18.0
python-dateutil==2.8.2
pytz==2021.3
scikit-learn==0.22.2.post1
scipy==1.7.3
seaborn==0.11.2
six==1.16.0
threadpoolctl==3.0.0
@pms-bio
Copy link

pms-bio commented Feb 8, 2022

thanx, it helped a lot!

@tillea
Copy link

tillea commented Feb 19, 2022

Hi,
when trying to build the Debian package against sklearn 1.0.2 I get:

ModuleNotFoundError: No module named 'sklearn.neural_network.multilayer_perceptron'

Seems something has changed inbetween the sklearn versions.
Kind regards, Andreas.

@emollier
Copy link

Hi,

I managed to get mCaller working with sklearn ≥ 1 with the following patch. However if I recall correctly my python3 conventions, the '_' prefix denotes internal symbols, so it feels more like a work around than a real fix. Besides you might want to implement it in a more flexible way to support both former and later sklearn versions. Any ways, I hope this helps.

Have a nice day, :)
Étienne.


--- mcaller.orig/r94_model_NN_6_m6A.pkl
+++ mcaller/r94_model_NN_6_m6A.pkl
@@ -1,7 +1,7 @@
 ccopy_reg
 _reconstructor
 p1
-(csklearn.neural_network.multilayer_perceptron
+(csklearn.neural_network._multilayer_perceptron
 MLPClassifier
 p2
 c__builtin__
@@ -68,7 +68,7 @@
 tbsS'_label_binarizer'
 p20
 g1
-(csklearn.preprocessing.label
+(csklearn.preprocessing._label
 LabelBinarizer
 p21
 g3
--- mcaller.orig/r95_twobase_model_NN_6_m6A.pkl
+++ mcaller/r95_twobase_model_NN_6_m6A.pkl
@@ -4,7 +4,7 @@
 ccopy_reg
 _reconstructor
 p3
-(csklearn.neural_network.multilayer_perceptron
+(csklearn.neural_network._multilayer_perceptron
 MLPClassifier
 p4
 c__builtin__
@@ -71,7 +71,7 @@
 tbsS'_label_binarizer'
 p22
 g3
-(csklearn.preprocessing.label
+(csklearn.preprocessing._label
 LabelBinarizer
 p23
 g5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants