The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Reset Parameter Error in Python + SQL + Tableau

Reset Parameter Error in Python + SQL + Tableau

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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