CategoricalCrossEntropy

Inheritance Diagram

Inheritance diagram of ashpy.losses.gan.CategoricalCrossEntropy

class ashpy.losses.gan.CategoricalCrossEntropy[source]

Bases: ashpy.losses.executor.Executor

Categorical Cross Entropy between generator output and target.

Useful when the output of the generator is a distribution over classes.

..note::
The target must be represented in one hot notation.

Methods

__init__() Initialize the Categorical Cross Entropy Executor.
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__()[source]

Initialize the Categorical Cross Entropy Executor.

Return type:None