Skip to content

Commit 46c999c

Browse files
committed
Use onset-only event-based metric
1 parent 8c07a66 commit 46c999c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

task3_sound_event_detection_in_real_life_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ def do_system_evaluation(dataset, result_path, dataset_evaluation_mode='folds'):
904904
overall_metrics_per_scene[scene_label] = {}
905905

906906
dcase2016_segment_based_metric = DCASE2016_EventDetection_SegmentBasedMetrics(class_list=dataset.event_labels(scene_label=scene_label))
907-
dcase2016_event_based_metric = DCASE2016_EventDetection_EventBasedMetrics(class_list=dataset.event_labels(scene_label=scene_label))
907+
dcase2016_event_based_metric = DCASE2016_EventDetection_EventBasedMetrics(class_list=dataset.event_labels(scene_label=scene_label), use_onset_condition=True, use_offset_condition=False)
908908

909909
for fold in dataset.folds(mode=dataset_evaluation_mode):
910910
results = []

0 commit comments

Comments
 (0)