pyrit.score.ScorerMetrics#
- class ScorerMetrics[source]#
Bases:
objectBase dataclass for storing scorer evaluation metrics.
This class provides methods for serializing metrics to JSON and loading them from JSON files.
Methods
__init__()from_json(file_path)Load the metrics from a JSON file.
to_json()Convert the metrics to a JSON string.