source: orange/docs/reference/rst/code/instance-metavar.py @ 9929:6df3696524a2

Revision 9929:6df3696524a2, 166 bytes checked in by markotoplak, 2 years ago (diff)

data.variable -> feature.

Line 
1import random
2import Orange
3lenses = Orange.data.Table("lenses")
4id = Orange.feature.new_meta_id()
5for inst in lenses:
6    inst[id] = random.random()
7print lenses[0]
Note: See TracBrowser for help on using the repository browser.