Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions evaluation_function/correction/correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,16 @@ def analyze_fsa_correction(
# Step 9: Decide correctness based on evaluation mode
# -------------------------------------------------------------------------
if params.evaluation_mode == "strict":
is_correct = validation_result is not None and validation_result.ok and equivalence_result.ok and iso_result.ok
is_correct = (
(not params.check_minimality or validation_result.ok)
and equivalence_result.ok
and iso_result.ok
)
elif params.evaluation_mode == "lenient":
is_correct = validation_result is not None and validation_result.ok and equivalence_result.ok
is_correct = (
(not params.check_minimality or validation_result.ok)
and equivalence_result.ok
)
else: # partial # I dont know what the partial is meant for, always mark as incorrect?
is_correct = False

Expand Down