Skip to content

Commit

Permalink
mean_square_error => mean_squared_error (keras-team#7015)
Browse files Browse the repository at this point in the history
training.py `'mean_squared_error'` was misspelled as `'mean_square_error'`.
  • Loading branch information
ahundt authored and fchollet committed Jun 16, 2017
1 parent d3c3361 commit c0f0b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/engine/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _check_loss_and_target_compatibility(targets, loss_fns, output_shapes):
ValueError: if a loss function or target array
is incompatible with an output.
"""
key_losses = {'mean_square_error',
key_losses = {'mean_squared_error',
'binary_crossentropy',
'categorical_crossentropy'}
for y, loss, shape in zip(targets, loss_fns, output_shapes):
Expand Down

0 comments on commit c0f0b66

Please sign in to comment.