Open aerijman opened 2 years ago
thanx, it helped a lot!
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.
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
Hi, I needed to:
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
: