source: orange/orange/doc/reference/randomindicescv.py @ 526:fe2d65da2b2a

Revision 526:fe2d65da2b2a, 327 bytes checked in by janezd <janez.demsar@…>, 10 years ago (diff)
  • moved documentation from a separate module to this one
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
8
9data = orange.ExampleTable("lenses")
10
11print orange.MakeRandomIndicesCV(data)
12
13print orange.MakeRandomIndicesCV(10, folds=5)
Note: See TracBrowser for help on using the repository browser.