ClassifierLoss¶
Inheritance Diagram
-
class
ashpy.losses.classifier.
ClassifierLoss
(fn)[source]¶ Bases:
ashpy.losses.executor.Executor
Classifier Loss Executor using the classifier model, instantiated with a fn.
Methods
__init__
(fn)Initialize ClassifierLoss
.call
(*args, **kwargs)Attributes
fn
Return the Keras loss function to execute. global_batch_size
Global batch size comprises the batch size for each cpu. weight
Return the loss weight. -
__init__
(fn)[source]¶ Initialize
ClassifierLoss
.Parameters: fn ( tf.keras.losses.Loss
) – Classification Loss function, should take as input labels and prediction.Return type: None
Returns: None
-