@@ -503,8 +503,7 @@ class RemoteMonitor(Callback):
503
503
field: String; JSON field under which the data will be stored.
504
504
headers: Dictionary; optional custom HTTP headers.
505
505
Defaults to:
506
- `{'Accept': 'application/json',
507
- 'Content-Type': 'application/json'}`
506
+ `{'Accept': 'application/json', 'Content-Type': 'application/json'}`
508
507
"""
509
508
510
509
def __init__ (self ,
@@ -735,9 +734,9 @@ class ReduceLROnPlateau(Callback):
735
734
736
735
# Example
737
736
```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])
741
740
```
742
741
743
742
# Arguments
@@ -844,8 +843,8 @@ class CSVLogger(Callback):
844
843
845
844
# Example
846
845
```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])
849
848
```
850
849
851
850
# Arguments
@@ -910,6 +909,7 @@ class LambdaCallback(Callback):
910
909
This callback is constructed with anonymous functions that will be called
911
910
at the appropriate time. Note that the callbacks expects positional
912
911
arguments, as:
912
+
913
913
- `on_epoch_begin` and `on_epoch_end` expect two positional arguments:
914
914
`epoch`, `logs`
915
915
- `on_batch_begin` and `on_batch_end` expect two positional arguments:
0 commit comments