Reset Parameter Error in Python + SQL + Tableau
Hello. When I run the following code from the lesson:
from absenteeism_module import *
model = absenteeism_model('model', 'scaler') model.load_and_clean_data('Absenteeism_new_data.csv') model.predicted_outputs() I get the following error message: RuntimeError: The reset parameter is False but there is no n_features_in_ attribute. Is this estimator fitted? Please advise on how to fix the code.
model = absenteeism_model('model', 'scaler') model.load_and_clean_data('Absenteeism_new_data.csv') model.predicted_outputs() I get the following error message: RuntimeError: The reset parameter is False but there is no n_features_in_ attribute. Is this estimator fitted? Please advise on how to fix the code.
1 answers ( 0 marked as helpful)
Hi David!
Thanks for reaching out.
Please accept my apologies for the delayed response.
Please try downgrading the scikit-learn package, restart the kernel and retry. Version 0.22 as opposed to 0.23 could solve the problem.
Hope this helps.
Best,
Martin
Best,
Martin