Fake_News_Detection icon indicating copy to clipboard operation
Fake_News_Detection copied to clipboard

ModuleNotFoundError: No module named 'sklearn.linear_model.logistic'

Open rajraghuwanshi007 opened this issue 3 years ago • 2 comments

ModuleNotFoundError: No module named 'sklearn.linear_model.logistic' giving error but sklearn is already installed .these are my installed packages: certifi==2021.10.8 chardet==4.0.0 charset-normalizer==2.0.12 click==8.1.3 colorama==0.4.4 cycler==0.11.0 fonttools==4.34.4 idna==3.3 joblib==1.1.0 kiwisolver==1.4.4 logistics==0.0.7 matplotlib==3.5.2 nltk==3.7 numpy==1.22.2 packaging==21.3 pandas==1.4.1 Pillow==9.2.0 pyparsing==3.0.9 pyperclip==1.8.2 python-dateutil==2.8.2 pytz==2021.3 regex==2022.7.25 requests==2.27.1 scikit-learn==1.1.1 scipy==1.8.1 seaborn==0.11.2 six==1.16.0 tbomb==2.1.2 threadpoolctl==3.1.0 tqdm==4.64.0 urllib3==1.26.9

rajraghuwanshi007 avatar Jul 27 '22 05:07 rajraghuwanshi007

their model saved as .sav has an obsolete reference for logistic regression by sklearn, generate your own model by running the jupyter notebook and then save it to root of this project and reference it in prediction.py

mahsanghani avatar Aug 17 '22 23:08 mahsanghani

hi, can you tell in detail how to fix this?

KYSIAMNHAC avatar Apr 09 '23 13:04 KYSIAMNHAC