1%define OT_LeaveOneOutSplitter_doc
2"Leave-one-out splitter.
3
4Generates train/test indices to split samples in train/test sets.
5Each sample is used once as a test set while the remaining samples form the training set.
6
7Parameters
8----------
9N : int
10    Size of the set of indices in which the indices are chosen
11
12Examples
13--------
14>>> import openturns as ot
15>>> X = ot.Normal().getSample(10)
16>>> splitter = ot.LeaveOneOutSplitter(X.getSize())
17>>> for indices1, indices2 in splitter:
18...     X_train, X_test = X[indices1], X[indices2]
19"
20%enddef
21%feature("docstring") OT::LeaveOneOutSplitter
22OT_LeaveOneOutSplitter_doc
23