Specialized keras.metrics
that tracks how distances evolves during training.
-
class DistanceGapMetric
: Encapsulates metric logic and state. -
class DistanceMetric
: Encapsulates metric logic and state.
-
batch_class_ratio(...)
: Computes the average number of examples per class within each batch.