cerebral.kfolds.kfolds(data: DataFrame, save: bool = False, plot: bool = False)[source]

Performs k-folds cross-validation to evaluate a model.

Parameters:
data: DataFrame

The dataset used to train models, which will be folded into multiple training and testing subsets.

save: bool = False

If True, each submodel will be saved to disk.

plot: bool = False

If True, training metrics for each submodel will be plotted.


Last update: Feb 09, 2023