Hi I am having problem to load model for prediction. When I run the model_load, it gives me error message. My python version 3.7.13. My pycaret version is 3 and there is no list of version for me to select.
Below is the code to save the model from google colab:
I’m not exactly sure what is going on from the messages but if you give me code to copy and paste instead of pictures, I can maybe do some more debugging on Streamlit’s side to try to understand the issue.
When loading pickle files, it’s important to ensure that the versions of Python packages used to create the pickle files are identical to the versions used when loading the files. i.e. ensure the Python packages you use locally are the same versions as those on Google Colab.
In particular, as the message says a pycaret attribute isn’t found, I would check the pycaret version differences locally vs on Colab.
hey snehankekre. I think it is really due to the miss match of version between colab pycaret and my anaconda version for streamlit. I tried to redo my model using anaconda version jupyer and the model load without problem at the same anaconda for streamlit. I cant wait to apply the new model to my apps. Hope it works too. Will keep you update. thanks for your help
Hi, I have the same issue and it is not a problem of version of pycaret because I use the same virtual environment between my jupyter notebook and my python script in VSCode.
It has been a day I am trying to load the pipeline.pkl I saved in my notebook without success.
I consider strongly not to use pycaret anymore, or only to see which model perform better and then develop the model myself. I got too many bugs with pycaret when trying to use it with streamlit, and I am not sure anymore it is reliable…