ClassifierLoss¶
Inheritance Diagram

-
class
ashpy.losses.classifier.ClassifierLoss(fn)[source]¶ Bases:
ashpy.losses.executor.ExecutorClassifier Loss Executor using the classifier model, instantiated with a fn.
Methods
__init__(fn)Initialize
ClassifierLoss.call(*args, **kwargs)Attributes
fnReturn the Keras loss function to execute.
global_batch_sizeGlobal batch size comprises the batch size for each cpu.
weightReturn 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
-