validation_utils

Stable validation-artifact writer shared by AutoModel scoring paths.

Functions

scoring_result_matches

Return whether an existing score matches its config and expected identity fields.

write_results

scoring_result_matches(path, args, *, expected_payload=None)

Return whether an existing score matches its config and expected identity fields.

Parameters:
  • path (str | Path)

  • args (Any)

  • expected_payload (Mapping[str, Any] | None)

Return type:

bool

write_results(output_dir, result_name, args, payload)
Parameters:
  • output_dir (str | Path)

  • result_name (str)

  • args (DictConfig)

  • payload (dict[str, Any])

Return type:

None