package sklearn
Module Model_selection.BaseCrossValidatorSource
Source
val get_n_splits :
?x:Py.Object.t ->
?y:Py.Object.t ->
?groups:Py.Object.t ->
[> tag ] Obj.t ->
intReturns the number of splitting iterations in the cross-validator
Source
val split :
?y:[> `ArrayLike ] Np.Obj.t ->
?groups:[> `ArrayLike ] Np.Obj.t ->
x:[> `ArrayLike ] Np.Obj.t ->
[> tag ] Obj.t ->
([> `ArrayLike ] Np.Obj.t * [> `ArrayLike ] Np.Obj.t) Seq.tGenerate indices to split data into training and test set.
Parameters ---------- X : array-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features.
y : array-like of shape (n_samples,) The target variable for supervised learning problems.
groups : array-like of shape (n_samples,), default=None Group labels for the samples used while splitting the dataset into train/test set.
Yields ------ train : ndarray The training set indices for that split.
test : ndarray The testing set indices for that split.
Pretty-print the object to a formatter.