in src/diarizers/utils.py [0:0]
def __init__(self, specifications) -> None:
"""init method
Args:
specifications (_type_): specifications attribute from a SegmentationModel.
"""
self.powerset = specifications.powerset
self.classes = specifications.classes
self.powerset_max_classes = specifications.powerset_max_classes
self.model_powerset = Powerset(
len(self.classes),
self.powerset_max_classes,
)
self.metrics = {
"der": DiarizationErrorRate(0.5),
"confusion": SpeakerConfusionRate(0.5),
"missed_detection": MissedDetectionRate(0.5),
"false_alarm": FalseAlarmRate(0.5),
}