feat: add --average-case option to optimize command (#2018)

Co-authored-by: Hervé BREDIN <hbredin@users.noreply.github.com>
This commit is contained in:
antoinelaurentandHervé BREDIN authored and GitHub committed 2026-06-06 08:13:27 +02:00
1 parent 8c4fad17e0
commit 6d4f81761c
1 file changed
+5 -1
+5 -1
View File
@@ -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