Error when attempting to run the load_and_clean_data function from module
When I try to run the load_and_clean_data from the absenteeism module, I get the following error:
RuntimeError: The reset parameter is False but there is no n_features_in_ attribute. Is this estimator fitted?
I'm not sure why this is being returned as I have followed the videos accordingly and can't pinpoint what is causing this error.
I believe it has something to do with how to download the model and scaler initially.
Thanks for reaching out.
Please go to Anaconda Prompt or Terminal (depending on whether you are a PC or Mac user, respectively), and try downgrading scikit-learn to version 0.22 like this:
pip uninstall scikit-learn
pip install scikit-learn==0.22
scikit-learn is also interdependent with NumPy and SciPy modules. Therefore, you may need to uninstall the latter two and install them after you've downgraded scikit-learn.
After finishing the operation, please restart Kernel before proceeding further.
Hope this helps.