Closed damiantomczyszyn closed 8 months ago
Thanks! Does using Adam causes error or warning?
Adam causes error in python3.10/dist-packages/keras/src/optimizers/optimizer.py. Specifically /usr/local/lib/python3.10/dist-packages/keras/src/optimizers/optimizer.py in _process_kwargs(self, kwargs) 133 for k in kwargs: 134 if k in legacy_kwargs: --> 135 raise ValueError( 136 f"{k} is deprecated in the new Keras optimizer, please " 137 "check the docstring for valid arguments, or use the "
ValueError: decay is deprecated in the new Keras optimizer, please check the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.Adam.
Updated the fit method call to the new tensorflow syntax to use the legacy.Adam() method, which takes the old decay parameter.