calour.training.RepeatedSortedStratifiedKFold.get_n_splits

RepeatedSortedStratifiedKFold.get_n_splits(X=None, y=None, groups=None)[source]

Returns the number of splitting iterations in the cross-validator

Parameters:
  • X (object) – Always ignored, exists for compatibility. np.zeros(n_samples) may be used as a placeholder.
  • y (object) – Always ignored, exists for compatibility. np.zeros(n_samples) may be used as a placeholder.
  • groups (array-like, with shape (n_samples,), optional) – Group labels for the samples used while splitting the dataset into train/test set.
Returns:

n_splits – Returns the number of splitting iterations in the cross-validator.

Return type:

int