Skip to content

Commit

Permalink
Merge pull request keras-team#444 from erfannoury/patch-1
Browse files Browse the repository at this point in the history
Fix LossHistory callback argument in doc
  • Loading branch information
fchollet committed Jul 26, 2015
2 parents 275f416 + dd833de commit 59a634d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You can create a custom callback by extending the base class `keras.callbacks.Ca
Here's a simple example saving a list of losses over each batch during training:
```python
class LossHistory(keras.callbacks.Callback):
def on_train_begin(self):
def on_train_begin(self, logs={}):
self.losses = []

def on_batch_end(self, batch, logs={}):
Expand Down

0 comments on commit 59a634d

Please sign in to comment.