-
Notifications
You must be signed in to change notification settings - Fork 15
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.svm.classes' #11
Comments
Hello, I'm sorry you are having trouble with the environment. We have recently updated the .yml file to avoid cross-platform issues, so please try to install it again. Otherwise, to avoid the mentioned problem you should install a version of scikit-learn <= 0.22.1. Please let me know if this worked for you. |
You suggestion has been helpful. I have built new conda environment, installed python=3.8, cython=0.28.5 to be able to install scikit-learn=0.22.1. Afterwards did conda env update from environment.yml and then compiled "construe.utils.signal_processing.dtw package" as you suggested in Known Issues. I have successfully managed to run run_example.sh! I have also installed wfdb software package but I think I have done something wrong because when I run "python3 construe_ecg.py -r 100" it returnes: init: can't open header for record 100 Hope that you can help me with that and thank you for your respond. |
Hello, It seems the problem is that the WFDB software is not able to read the record named '100'. The simplest solution is to copy the record (.hea and .dat files) to the same folder where you are running the script. Another solution is to modify the |
Thank you for the answer. I have successfully resolved this issue regarding the installation process! Now, I had tried to load my signal using wrsamp function to get .hea and .dat files, I have set the sampling frequency and multiplied the signal and error I get is: File "construe_ecg.py", line 162, in I manage to load the record and plot the signal, still it unrecognizible to this app, do you have any suggestions? |
Hello,
I am working from macos M1 and it has been really hard for me to set up the environment.
I have tried creating environment from .yml file but got "Solving environment: failed" message. I have created new environment, installed numpy (because it wasn't working properly otherwise) and then updated environment from requirements.txt. I have then installed wfdb software package. While running the example script it gives me the error:
ModuleNotFoundError: No module named 'sklearn.svm.classes'
I would really appreciate if you could help me.
If you need any extra info, please let me know.
The text was updated successfully, but these errors were encountered: