bluecast.evaluation.base_classes

Base classes for evaluation purposes

Module Contents

Classes

DataReader

Abstract class to define error reading out of fold datasets from BlueCast pipelines.

ErrorPreprocessor

Abstract class to define analysing prediction errors on out of fold datasets

ErrorAnalyser

Abstract class to define the analysis of prediction errors on out of fold datasets

ErrorDistributionPlotter

Abstract class to define the plots for error analysis

class bluecast.evaluation.base_classes.DataReader

Bases: abc.ABC

Abstract class to define error reading out of fold datasets from BlueCast pipelines.

abstract read_data_from_bluecast_instance() polars.DataFrame
abstract read_data_from_bluecast_cv_instance() polars.DataFrame
class bluecast.evaluation.base_classes.ErrorPreprocessor

Bases: abc.ABC

Abstract class to define analysing prediction errors on out of fold datasets

abstract stack_predictions_by_class(df: polars.DataFrame) polars.DataFrame
abstract calculate_errors(df) polars.DataFrame
class bluecast.evaluation.base_classes.ErrorAnalyser

Bases: abc.ABC

Abstract class to define the analysis of prediction errors on out of fold datasets

abstract analyse_errors(df, descending: bool = True) None
class bluecast.evaluation.base_classes.ErrorDistributionPlotter

Bases: abc.ABC

Abstract class to define the plots for error analysis

abstract plot_error_distributions(df: polars.DataFrame, target_column: str)