scorebook.exceptions
Custom exceptions for the Scorebook framework.
This module defines specific exception types used throughout the Scorebook evaluation framework to provide clear error handling and debugging information.
ScoreBookError Objects
class ScoreBookError(Exception)
Base exception class for all Scorebook-related errors.
EvaluationError Objects
class EvaluationError(ScoreBookError)
Raised when there are errors during model evaluation.
ParameterValidationError Objects
class ParameterValidationError(ScoreBookError)
Raised when invalid parameters are provided to evaluation functions.
InferenceError Objects
class InferenceError(EvaluationError)
Raised when there are errors during model inference.
MetricComputationError Objects
class MetricComputationError(EvaluationError)
Raised when metric computation fails.
__init__
def __init__(metric_name: str, dataset_name: str, original_error: Exception)
Initialize metric computation error.
DataMismatchError Objects
class DataMismatchError(EvaluationError)
Raised when there's a mismatch between outputs and expected labels.
__init__
def __init__(outputs_count: int, labels_count: int, dataset_name: str)
Initialize data mismatch error.
ParallelExecutionError Objects
class ParallelExecutionError(ScoreBookError)
Raised when parallel execution requirements are not met.