-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: fit() got an unexpected keyword argument 'show_accuracy' ---- Graph().fit #2096
Comments
Hi @fluency03, The Github version is the newer one -- it has some modules which the PyPI version does not have. I checked my version (which was downloaded from Github) and I see the following code:
Did you previously install Keras using the command, If so, maybe you should try upgrading your installation with the following command: |
@jisungk I have done this |
@fluency03 if you have any previous installation of Keras, then calling Hope this helps! |
@jisungk It's solved. thanks |
model.fit(X_train, Y_train, get the error /usr/local/lib/python3.6/dist-packages/keras/models.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs) TypeError: Unrecognized keyword arguments: {'show_accuracy': True} |
what about the error fit_generator() got an unexpected keyword argument 'samples_per_epoch'?My keras version is 2.4.1. |
I am training the
Graph
model with usingfit
with parametershow_accuracy
. However, I got the error:When I check the source code on github here, it shows that
Graph
'sfit
hasshow_accuracy
:But when I check the release version 0.3.2, it is like:
I am wondering, which one is the newest version?
I used this
pip install git+git://github.com/fchollet/keras.git
to install Keras. Even this, theGraph
'sfit
I got has noshow_accuracy
parameter.The text was updated successfully, but these errors were encountered: