fraudtwin.compute_fidelity_report#
- fraudtwin.compute_fidelity_report(profile, generated, *, weights=None, minimum_scores=None)[source][source]#
Compare generated aggregate values with a fitted profile.
- Parameters:
profile (
CalibrationProfile) – Reference summaries to score.generated (
Mapping[str,object]) – Mapping of summary names to generated values or score payloads.weights (
Mapping[Any,float] |None) – Optional positive weight per summary name.minimum_scores (
Mapping[Any,float] |None) – Optional threshold that marks a metric below target.
- Return type:
- Returns:
A deterministic report containing one metric per profile summary and a weighted composite score when at least one value is available.