There could be different reasons why you are getting this error. Can you let me know which section and unit did you get this error in?
One reason could be due to an incompatible version of Keras being installed in the local system. It should work in the version:2.5.0
You can try a workaround and install another library: scikeras, with the following command in the jupyter notebook
!pip install scikeras
from scikeras.wrappers import KerasClassifier
Do let me know if this helps. However, I would like to know which version of keras is installed in your local system. Also, is it possible for you to install the machine learning virtual environment in the blog "https://blog.quantinsti.com/set-up-python-system/"? This should help you install the compatible versions of various python libraries.
=========================================================
1171 " `estimator.get_params().keys()`"
1172 ) fromNone
1173 return self
ValueError: Invalid parameter act_1 for estimator KerasClassifier.
This issue can likely be resolved by setting this parameter in the KerasClassifier constructor:
`KerasClassifier(act_1=tanh)`
Check the list of available parameters with `estimator.get_params().keys()`
Can you confirm if you tried installing the machine learning virtual environment in the blog "https://blog.quantinsti.com/set-up-python-system/"? This should help you install the compatible versions of various python libraries.
The virtual environment will help you avoid errors in Python.