Hi all,
In the module 1, secction Preprocessing for numerical features
model_name = model.__class__.__name__
score = model.score(data_test, target_test)
print(f"The accuracy using a {model_name} is {score:.3f} "
f"with a fitting time of {elapsed_time:.3f} seconds "
f"in {model.n_iter_[0]} iterations")
I got this error:
AttributeError Traceback (most recent call last)
<ipython-input-17-0cdc76cc0bd7> in <module>
3 print(f"The accuracy using a {model_name} is {score:.3f} "
4 f"with a fitting time of {elapsed_time:.3f} seconds "
----> 5 f"in {model.n_iter_[0]} iterations")
AttributeError: 'Pipeline' object has no attribute 'n_iter_'
both on MOOC and Colab. Any clue would be appreciated.