pyrit.score.get_all_objective_metrics#
- get_all_objective_metrics(file_path: Path | None = None) List[ScorerMetricsWithIdentity[ObjectiveScorerMetrics]][source]#
Load all objective scorer metrics with full scorer identity for comparison.
Returns a list of ScorerMetricsWithIdentity[ObjectiveScorerMetrics] objects that wrap the scorer’s identity information and its performance metrics, enabling clean attribute access like entry.metrics.accuracy or entry.metrics.f1_score.
- Parameters:
file_path (Optional[Path]) – Path to a specific JSONL file to load. If not provided, uses the default path: SCORER_EVALS_PATH / “objective” / “objective_achieved_metrics.jsonl”
- Returns:
- List of metrics with scorer identity.
Access metrics via entry.metrics.accuracy, entry.metrics.f1_score, etc. Access scorer info via entry.scorer_identifier.type, etc.
- Return type: