Skip to content

Commit

Permalink
fix: fix "params.yml" content when validating on diarization protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin authored Nov 15, 2019
1 parent 672bab6 commit 9ac612e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyannote/audio/applications/speaker_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,10 @@ def fun(threshold):
if coverage > best_coverage:
best_coverage = coverage
best_threshold = current_threshold

value = best_coverage if best_coverage else purity - self.purity
return {'metric': f'coverage@{self.purity:.2f}purity',
'minimize': False,
'value': best_coverage if best_coverage \
else purity - self.purity}
'value': float(value)}


def apply(self, protocol_name: str,
Expand Down

0 comments on commit 9ac612e

Please sign in to comment.