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

ModuleNotFoundError: No module named 'sklearn._loss.loss' #3

Open
jjGG opened this issue Nov 17, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'sklearn._loss.loss' #3

jjGG opened this issue Nov 17, 2023 · 1 comment

Comments

@jjGG
Copy link

jjGG commented Nov 17, 2023

Dear developer,

I am running into an error (see below)

Thanks for looking into.

best regards
jonas

///////////
prfect.py sequence.gbk
Traceback (most recent call last):
File "/usr/local/bin/prfect.py", line 163, in
clf = pickle.load(open(path, 'rb'))
ModuleNotFoundError: No module named 'sklearn._loss.loss'

@deprekate
Copy link
Owner

oh, I just noticed this issue. I believe the problem is with different version of sklearn they moved around the loss method. I seem to recall that I also ran into this issue while running prfect on different machines. I thought that I fixed it by packing the loss method in the pickle file, but I cant find any evidence in the training script code that I did.

If you can let me know your numpy/sklearn/tensorflow version I can try to add in backwards compatibility.

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

2 participants