Skip to content

Commit e7f3317

Browse files
nzw0301fchollet
authored andcommitted
Style fixes (#6335)
1 parent 47350dc commit e7f3317

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

keras/callbacks.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,7 @@ class RemoteMonitor(Callback):
503503
field: String; JSON field under which the data will be stored.
504504
headers: Dictionary; optional custom HTTP headers.
505505
Defaults to:
506-
`{'Accept': 'application/json',
507-
'Content-Type': 'application/json'}`
506+
`{'Accept': 'application/json', 'Content-Type': 'application/json'}`
508507
"""
509508

510509
def __init__(self,
@@ -735,9 +734,9 @@ class ReduceLROnPlateau(Callback):
735734
736735
# Example
737736
```python
738-
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.2,
739-
patience=5, min_lr=0.001)
740-
model.fit(X_train, Y_train, callbacks=[reduce_lr])
737+
reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.2,
738+
patience=5, min_lr=0.001)
739+
model.fit(X_train, Y_train, callbacks=[reduce_lr])
741740
```
742741
743742
# Arguments
@@ -844,8 +843,8 @@ class CSVLogger(Callback):
844843
845844
# Example
846845
```python
847-
csv_logger = CSVLogger('training.log')
848-
model.fit(X_train, Y_train, callbacks=[csv_logger])
846+
csv_logger = CSVLogger('training.log')
847+
model.fit(X_train, Y_train, callbacks=[csv_logger])
849848
```
850849
851850
# Arguments
@@ -910,6 +909,7 @@ class LambdaCallback(Callback):
910909
This callback is constructed with anonymous functions that will be called
911910
at the appropriate time. Note that the callbacks expects positional
912911
arguments, as:
912+
913913
- `on_epoch_begin` and `on_epoch_end` expect two positional arguments:
914914
`epoch`, `logs`
915915
- `on_batch_begin` and `on_batch_end` expect two positional arguments:

0 commit comments

Comments
 (0)