Skip to content

Commit

Permalink
Update LeaveOneOutSplitter_doc.i.in
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed May 5, 2024
1 parent 1c75883 commit 447f0d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/src/LeaveOneOutSplitter_doc.i.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ N : int
Examples
--------
>>> import openturns as ot
>>> X = ot.Normal().getSample(10)
>>> splitter = ot.LeaveOneOutSplitter(X.getSize())
>>> sample = ot.Normal().getSample(10)
>>> splitter = ot.LeaveOneOutSplitter(sample.getSize())
>>> for indicesTrain, indicesTest in splitter:
... XTrain, XTest = X[indicesTrain], X[indicesTest]
... sampleTrain, sampleTest = sample[indicesTrain], sample[indicesTest]
"
%enddef
%feature("docstring") OT::LeaveOneOutSplitter
Expand Down

0 comments on commit 447f0d3

Please sign in to comment.