MCPcopy
hub / github.com/Audio-AGI/AudioSep / evaluate_mertics

Method evaluate_mertics

models/CLAP/open_clip/loss.py:372–376  ·  view source on GitHub ↗
(self, pred, target)

Source from the content-addressed store, hash-verified

370 raise ValueError(f"the metric should be at least one of [map, acc, mauc]")
371
372 def evaluate_mertics(self, pred, target):
373 metric_dict = {}
374 for i in range(len(self.metric_names)):
375 metric_dict[self.metric_names[i]] = self.metrics[i](pred, target)
376 return metric_dict
377
378
379def calc_celoss(pred, target):

Callers 1

evaluateFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected