calour.training.RepeatedSortedStratifiedKFold

class calour.training.RepeatedSortedStratifiedKFold(n_splits=5, n_repeats=10, random_state=None)[source]

Bases: sklearn.model_selection._split._RepeatedSplits

Repeated Stratified K-Fold cross validator.

Please see sklearn.model_selection.RepeatedStratifiedKFold for documentation for parameters, etc. It is very similar to that except this is for regression of numeric values.

Methods

get_n_splits([X, y, groups]) Returns the number of splitting iterations in the cross-validator
split(X[, y, groups]) Generates indices to split data into training and test set.

Attributes