Reputation: 1752
I am trying to test a Keras model after training it:
# test model
metrics = self.espa.evaluate_generator(generator=testing_sequence_generator,
steps=batches)
And I am getting the following error:
TypeError: evaluate_generator() got an unexpected keyword argument 'steps'
What confuses me is that steps
is a valid argument, as per Keras' documentation:
Arguments:
Upvotes: 1
Views: 3746
Reputation: 1752
Removing the keywords and passing the arguments directly appears to fix the problem:
# test model
metrics = self.espa.evaluate_generator(testing_sequence_generator,
batches)
Upvotes: 2