Hello. When I run the following code from the lesson:
from absenteeism_module import *
model = absenteeism_model(‘model’, ‘scaler’)
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.
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.