source: orange/docs/reference/rst/code/randomindicescv.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 426 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

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
8lenses = Orange.data.Table("lenses")
9print "Indices for ordinary 10-fold CV"
10print Orange.data.sample.SubsetIndicesCV(lenses)
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.