f70ce115022b64572bb5895e21088f4ae1023737,pyannote/audio/embedding/approaches/triplet_loss.py,TripletLoss,__init__,#TripletLoss#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,90
Before Change
// FIXME see above
self.margin_ = self.margin * self.max_distance
if clamp not in {"positive", "sigmoid", "softmargin"}:
msg = ""clamp" must be one of {"positive", "sigmoid", "softmargin"}."
raise ValueError(msg)
self.clamp = clamp
if sampling not in {"all", "hard", "negative", "easy"}:
msg = ""sampling" must be one of {"all", "hard", "negative", "easy"}."
raise ValueError(msg)
self.sampling = sampling
def batch_easy(self, y, distances):
After Change
def __init__(self, duration: float = 1.0,
min_duration: float = None,
per_turn: int = 1,
per_label: int = 1,
per_fold: int = 32,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pyannote/pyannote-audio
Commit Name: f70ce115022b64572bb5895e21088f4ae1023737
Time: 2020-03-03
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/approaches/triplet_loss.py
Class Name: TripletLoss
Method Name: __init__
Project Name: pyannote/pyannote-audio
Commit Name: 16c64325ee56307e3b29cc4bb215c771240161fc
Time: 2019-07-31
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/approaches/triplet_loss.py
Class Name: TripletLoss
Method Name: __init__
Project Name: pyannote/pyannote-audio
Commit Name: 26a096c2e9cce537bd67f53955008aed7a570e15
Time: 2019-04-08
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/generators.py
Class Name: SessionWiseSpeechSegmentGenerator
Method Name: __init__