nishitpatel01 / Fake_News_Detection

Fake News Detection in Python
MIT License
525 stars 347 forks source link

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

Open rajraghuwanshi007 opened 2 years ago

rajraghuwanshi007 commented 2 years ago

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

mahsanghani commented 2 years ago

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

KYSIAMNHAC commented 1 year ago

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