gabbygab1233 / Crop-Recommender

AI Application that can predict the most suitable crops to grow in particular farm based on various parameters.
54 stars 38 forks source link

INFO numexpr.utils: NumExpr defaulting to 8 threads. #2

Open KeertiAdapa opened 2 years ago

KeertiAdapa commented 2 years ago

crop_streamlit.md

gabbygab1233 commented 2 years ago

Hi, I try to pull this repository and it works fine for me. Can you please elaborate more on the problem? running the "streamlit run app.py" cause you an error? or while installing the dependencies?

crop_recom

KeertiAdapa commented 2 years ago

running the app.py caused a problem. when debugged I'm getting an error stating: " INFO numexpr.utils: NumExpr defaulting to 8 threads." Is this error related to installing any dependencies

gabbygab1233 commented 2 years ago

Try uninstall the numexpr and update ur python version to 3.8 then update all the dependencies and install again the numexpr

plotly==4.5.0 pandas_profiling==2.3.0 streamlit==0.79.0 matplotlib==3.3.0 pandas==1.0.5 seaborn==0.10.1 numpy==1.18.5 scikit_learn==1.0.2

I prefer to show me the screenshot of error instead of text.

KeertiAdapa commented 2 years ago

Okay sir, we once again try installing it.

Attached the screenshot too sir [

Screenshot 2022-03-31 at 2 13 06 PM

](url)

gabbygab1233 commented 2 years ago

Don't run it on Jupyter notebook. Try to run it on ur cmd or terminal.

streamlit run app.py

KeertiAdapa commented 2 years ago

Thanks a lot sir! Site is working now. But not predicting the crop

Screenshot 2022-04-01 at 2 10 44 PM

.

ghost commented 2 years ago

2022-05-10 10:40:24.357 Traceback (most recent call last): File "C:\Users\2019PECCS117\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 475, in _run_script exec(code, module.dict) File "C:\Users\2019PECCS117\Desktop\Crop-Recommender-main\app.py", line 77, in main() File "C:\Users\2019PECCS117\Desktop\Crop-Recommender-main\app.py", line 55, in main prediction = loaded_model.predict(single_pred) File "C:\Users\2019PECCS117\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\utils\metaestimators.py", line 113, in out = lambda *args, *kwargs: self.fn(obj, args, kwargs) # noqa File "C:\Users\2019PECCS117\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\pipeline.py", line 470, in predict return self.steps[-1][1].predict(Xt, predict_params) File "C:\Users\2019PECCS117\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\naive_bayes.py", line 83, in predict jll = self._joint_log_likelihood(X) File "C:\Users\2019PECCS117\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\naive_bayes.py", line 489, in _joint_log_likelihood nij = -0.5 np.sum(np.log(2.0 np.pi * self.var[i, :])) AttributeError: 'GaussianNB' object has no attribute 'var_'

how to rectify #it

gabbygab1233 commented 2 years ago

Hi, try to train and use other model.

gabbygab1233 commented 6 months ago

@gqgserver

Scamming does not work here; we're not gullible. Trying to deceive during the holidays reveals desperation for money. I condemn your actions, and I hope that for every person you target, someone in your own family doesn't suffer a tragic fate.