probinet.model_selection.mtcov_cross_validation#

This module contains the MTCOVCrossValidation class, which is used for cross-validation of the MTCOV algorithm.

Classes

MTCOVCrossValidation(algorithm, parameters, ...)

Class for cross-validation of the MTCOV algorithm.

class probinet.model_selection.mtcov_cross_validation.MTCOVCrossValidation(algorithm, parameters, input_cv_params, numerical_parameters=None)[source]#

Class for cross-validation of the MTCOV algorithm.

calculate_performance_and_prepare_comparison(outputs, masks, fold, _algorithm_object)[source]#
extract_mask(fold)[source]#

Extract the mask for the current fold.

load_data()[source]#

Auxiliary method to load data from the input folder.

prepare_and_run(masks)[source]#

Prepare the data for training and run the algorithm.

Parameters:

mask (np.ndarray) – The mask to apply on the data.

Returns:

  • tuple – The outputs of the algorithm.

  • object – The algorithm object.