OrdinalEarthMoversDistance

OrdinalEarthMoversDistance(name='earth_movers_distance', kwargs)

Computes earth movers distance for ordinal labels.

Methods


call(y_true, y_pred)

Computes mean absolute error for ordinal labels.

Args:
y_true: Cumulatiuve logits from CondorOrdinal layer.
y_pred: CondorOrdinal Encoded Labels.

from_config(config)

Instantiates a Loss from its config (output of get_config()).

Args:
config: Output of `get_config()`.

Returns:
A `Loss` instance.

get_config()

Returns the serializable config of the metric.

Properties