mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
feat: add --average-case option to optimize command (#2018)
Co-authored-by: Hervé BREDIN <hbredin@users.noreply.github.com>
This commit is contained in:
1 parent
8c4fad17e0
commit
6d4f81761c
1 file changed
+5
-1
@@ -162,6 +162,10 @@ def optimize(
|
||||
case_sensitive=False,
|
||||
),
|
||||
] = Metric.DiarizationErrorRate,
|
||||
average_case: Annotated[
|
||||
bool,
|
||||
typer.Option(help="Optimize for average case rather than worst case."),
|
||||
] = False,
|
||||
):
|
||||
"""
|
||||
Optimize a PIPELINE
|
||||
@@ -227,7 +231,7 @@ def optimize(
|
||||
study_name=study_name,
|
||||
sampler=None, # TODO: support sampler
|
||||
pruner=None, # TODO: support pruner
|
||||
average_case=False,
|
||||
average_case=average_case,
|
||||
)
|
||||
|
||||
direction = 1 if optimized_pipeline.get_direction() == "minimize" else -1
|
||||
|
||||
Reference in new issue
Block a user