bluecast.tests.test_error_analysis_regression

Module Contents

Functions

create_test_bluecast_instance()

Create a mock or a test instance of BlueCast for regression

create_test_bluecast_cv_instance()

Create a mock BlueCastCVRegression instance for testing

sample_regression_error_data()

Create sample regression error analysis data for testing

duckdb_regression_engine()

Create a DuckDB regression error analysis engine for testing

test_duckdb_regression_engine_init(...)

Test DuckDB regression error analysis engine initialization

test_duckdb_load_regression_data(...)

Test loading regression data into DuckDB

test_duckdb_compute_regression_statistics(...)

Test computing regression error statistics

test_duckdb_create_regression_visualizations(...)

Test creating regression error visualizations

test_out_of_fold_data_reader_regression(...)

Test OutOfFoldDataReaderRegression with proper error handling

test_out_of_fold_data_reader_regression_cv_error()

Test that OutOfFoldDataReaderRegression properly fails for CV instances

test_out_of_fold_data_reader_regression_cv(...)

Test OutOfFoldDataReaderRegressionCV

test_error_analyser_regression_mixin()

Test ErrorAnalyserRegressionMixin functionality

test_error_analyser_regression_full_pipeline(...)

Test full ErrorAnalyserRegression pipeline

test_error_analyser_regression_cv_full_pipeline(...)

Test full ErrorAnalyserRegressionCV pipeline

test_error_analyser_regression_wrong_method_calls()

Test that wrong method calls raise appropriate errors

test_error_distribution_regression_plotter_mixin()

Test ErrorDistributionRegressionPlotterMixin

test_regression_stack_predictions_by_class()

Test that stack_predictions_by_class works correctly for regression

test_regression_calculate_errors()

Test error calculation for regression

test_duckdb_create_regression_visualizations_with_residual_qq_plot(...)

Ensure residual Q-Q plot branch is executed when enough samples are present

test_error_distribution_regression_plotter_mixin_plots()

Exercise regression feature-level violin/box plotting path

bluecast.tests.test_error_analysis_regression.create_test_bluecast_instance()

Create a mock or a test instance of BlueCast for regression

bluecast.tests.test_error_analysis_regression.create_test_bluecast_cv_instance()

Create a mock BlueCastCVRegression instance for testing

bluecast.tests.test_error_analysis_regression.sample_regression_error_data()

Create sample regression error analysis data for testing

bluecast.tests.test_error_analysis_regression.duckdb_regression_engine()

Create a DuckDB regression error analysis engine for testing

bluecast.tests.test_error_analysis_regression.test_duckdb_regression_engine_init(duckdb_regression_engine)

Test DuckDB regression error analysis engine initialization

bluecast.tests.test_error_analysis_regression.test_duckdb_load_regression_data(duckdb_regression_engine, sample_regression_error_data)

Test loading regression data into DuckDB

bluecast.tests.test_error_analysis_regression.test_duckdb_compute_regression_statistics(duckdb_regression_engine, sample_regression_error_data)

Test computing regression error statistics

bluecast.tests.test_error_analysis_regression.test_duckdb_create_regression_visualizations(duckdb_regression_engine, sample_regression_error_data)

Test creating regression error visualizations

bluecast.tests.test_error_analysis_regression.test_out_of_fold_data_reader_regression(create_test_bluecast_instance)

Test OutOfFoldDataReaderRegression with proper error handling

bluecast.tests.test_error_analysis_regression.test_out_of_fold_data_reader_regression_cv_error()

Test that OutOfFoldDataReaderRegression properly fails for CV instances

bluecast.tests.test_error_analysis_regression.test_out_of_fold_data_reader_regression_cv(create_test_bluecast_cv_instance)

Test OutOfFoldDataReaderRegressionCV

bluecast.tests.test_error_analysis_regression.test_error_analyser_regression_mixin()

Test ErrorAnalyserRegressionMixin functionality

bluecast.tests.test_error_analysis_regression.test_error_analyser_regression_full_pipeline(create_test_bluecast_instance)

Test full ErrorAnalyserRegression pipeline

bluecast.tests.test_error_analysis_regression.test_error_analyser_regression_cv_full_pipeline(create_test_bluecast_cv_instance)

Test full ErrorAnalyserRegressionCV pipeline

bluecast.tests.test_error_analysis_regression.test_error_analyser_regression_wrong_method_calls()

Test that wrong method calls raise appropriate errors

bluecast.tests.test_error_analysis_regression.test_error_distribution_regression_plotter_mixin()

Test ErrorDistributionRegressionPlotterMixin

bluecast.tests.test_error_analysis_regression.test_regression_stack_predictions_by_class()

Test that stack_predictions_by_class works correctly for regression

bluecast.tests.test_error_analysis_regression.test_regression_calculate_errors()

Test error calculation for regression

bluecast.tests.test_error_analysis_regression.test_duckdb_create_regression_visualizations_with_residual_qq_plot(duckdb_regression_engine)

Ensure residual Q-Q plot branch is executed when enough samples are present

bluecast.tests.test_error_analysis_regression.test_error_distribution_regression_plotter_mixin_plots()

Exercise regression feature-level violin/box plotting path