📄 randomindicesn.py
字号:
# Description: Constructs indices for sampling procedure in which examples are divided in more than two groups
# Category: sampling
# Classes: MakeRandomIndices, MakeRandomIndicesN
# Uses: lenses
# Referenced: RandomIndices.htm
import orange
data = orange.ExampleTable("lenses")
indicesn = orange.MakeRandomIndicesN(p=[0.5, 0.25])
ind = indicesn(data)
print ind
indicesn = orange.MakeRandomIndicesN(p=[12, 6])
ind = indicesn(data)
print ind
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -