Last answered:

27 Jul 2020

Posted on:

19 Jul 2020

0

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. 
1 answers ( 0 marked as helpful)
Instructor
Posted on:

27 Jul 2020

0
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  

Submit an answer