solr_keras module¶
-
class
solr_keras.
CandleRemoteMonitor
(params=None)[source]¶ Bases:
keras.callbacks.Callback
Capture Run level output and store/send for monitoring
-
on_epoch_begin
(epoch, logs=None)[source]¶ Called at the start of an epoch.
Subclasses should override for any actions to run. This function should only be called during TRAIN mode.
- Parameters
epoch – Integer, index of epoch.
logs – Dict. Currently no data is passed to this argument for this method but that may change in the future.
-
on_epoch_end
(epoch, logs=None)[source]¶ Called at the end of an epoch.
Subclasses should override for any actions to run. This function should only be called during TRAIN mode.
- Parameters
epoch – Integer, index of epoch.
logs –
- Dict, metric results for this training epoch, and for the
validation epoch if validation is performed. Validation result keys are prefixed with val_. For training epoch, the values of the
- Model’s metrics are returned. Example`{‘loss’: 0.2, ‘accuracy’:
0.7}`.
-
on_train_begin
(logs=None)[source]¶ Called at the beginning of training.
Subclasses should override for any actions to run.
- Parameters
logs – Dict. Currently no data is passed to this argument for this method but that may change in the future.
-
-
class
solr_keras.
TerminateOnTimeOut
(timeout_in_sec=10)[source]¶ Bases:
keras.callbacks.Callback
This class implements timeout on model training. When the script reaches timeout, this class sets model.stop_training = True