Mogeng / IOHMM

Input Output Hidden Markov Model (IOHMM) in Python
BSD 3-Clause "New" or "Revised" License
162 stars 35 forks source link

ModuleNotFoundError: No module named 'sklearn.linear_model.base' #31

Closed SlvLdR closed 3 years ago

SlvLdR commented 3 years ago

When using IOHMM with python 3.9.1 I get the following error:

Traceback (most recent call last): File "c:\users...\appdata\local\programs\python\python39\lib\site-packages\IOHMM__init__.py", line 1, in from .IOHMM import (UnSupervisedIOHMM, File "c:\users...\appdata\local\programs\python\python39\lib\site-packages\IOHMM\IOHMM.py", line 39, in from .linear_models import (GLM, OLS, DiscreteMNL, CrossEntropyMNL) File "c:\users...\appdata\local\programs\python\python39\lib\site-packages\IOHMM\linear_models.py", line 56, in from sklearn.linear_model.base import _rescale_data ModuleNotFoundError: No module named 'sklearn.linear_model.base'

I managed to get it working by changing sklearn.linear_model.base to sklearn.linear_model._base in IOHMM\linear_models.py

Mogeng commented 3 years ago

Thanks for reporting this! Will address this in the next package.