deephyper.keras.callbacks.stop_if_unfeasible.StopIfUnfeasible#

class deephyper.keras.callbacks.stop_if_unfeasible.StopIfUnfeasible(*args: Any, **kwargs: Any)[source]#

Bases: Callback

Methods

on_batch_begin

Called at the beginning of a training batch in fit methods.

on_batch_end

Called at the end of a training batch in fit methods.

set_params

__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

on_batch_begin(batch, logs=None)[source]#

Called at the beginning of a training batch in fit methods. Subclasses should override for any actions to run.

Parameters:
  • batch (int) – index of batch within the current epoch.

  • logs (dict) – has keys batch and size representing the current batch number and the size of the batch.

on_batch_end(batch, logs=None)[source]#

Called at the end of a training batch in fit methods. Subclasses should override for any actions to run.

Parameters:
  • batch (int) – index of batch within the current epoch.

  • logs (dict) – metric results for this batch.