src.model.metrics.metrics module

metrics functions Wrapper

Use this module to load a custom metric function

class src.model.metrics.metrics.distanceAccuracy(name='distance_accuracy', margin: float | str = 0.5, **kwargs)

Bases: Metric

distance_accuracy. Metrics that measure the accuracy of the distances

reset_state()

reset_state.

result()

result.

update_state(ap, an, sample_weight=None)

update_state.

Parameters:
  • ap – ap, anchor positive distances

  • an – an, anchor negative distances

  • sample_weight – sample_weight