Update Classify `fitness` definition to mean of top1, top5 (#3789)

pull/3772/head^2
Glenn Jocher 1 year ago committed by GitHub
parent 9b723d7cfa
commit 96cc28b439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ultralytics/utils/metrics.py

@ -963,8 +963,8 @@ class ClassifyMetrics(SimpleClass):
@property
def fitness(self):
"""Returns top-5 accuracy as fitness score."""
return self.top5
"""Returns mean of top-1 and top-5 accuracies as fitness score."""
return (self.top1 + self.top5) / 2
@property
def results_dict(self):

Loading…
Cancel
Save