source: orange/docs/tutorial/rst/code/ @ 9832:3df88cf3bae1

Revision 9832:3df88cf3bae1, 416 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Do not save sampling results as, because other files are using it!

1# Description: Read 'adult' data set and select 3% of instances (use stratified sampling)
2# Category:    preprocessing
3# Uses:
4# Classes:     ExampleTable, MakeRandomIndices2
5# Referenced:  basic_exploration.htm
7import orange
8data = orange.ExampleTable("")
9selection = orange.MakeRandomIndices2(data, 0.03)
10sample =, 0)"")
Note: See TracBrowser for help on using the repository browser.