source: orange/docs/reference/rst/code/randomindicescv.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 422 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1# Description: Constructs indices for cross-validation
2# Category:    sampling
3# Classes:     MakeRandomIndices, MakeRandomIndicesCV
4# Uses:        lenses
5# Referenced:  RandomIndices.htm
6
7import Orange
8data = Orange.data.Table("lenses")
9print "Indices for ordinary 10-fold CV"
10print Orange.data.sample.SubsetIndicesCV(data)
11print "Indices for 5 folds on 10 examples"
12print Orange.data.sample.SubsetIndicesCV(10, folds=5)
Note: See TracBrowser for help on using the repository browser.