Ignore:
Timestamp:
02/07/12 16:12:17 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
1d1ce52bf1c40adcceacdbc987601870f76893c1
Message:

data.variable -> feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/datatable1.py

    r9883 r9927  
    1010values = ["1", "2", "3", "4"] 
    1111 
    12 features = [Orange.data.variable.Discrete(name, values = values[:card]) 
     12features = [Orange.feature.Discrete(name, values = values[:card]) 
    1313              for name, card in zip("abcdef", cards)] 
    14 classattr = Orange.data.variable.Discrete("y", values = ["0", "1"]) 
     14classattr = Orange.feature.Discrete("y", values = ["0", "1"]) 
    1515domain = Orange.data.Domain(features + [classattr]) 
    1616data = Orange.data.Table(domain) 
     
    3737 
    3838import numpy 
    39 d = Orange.data.Domain([Orange.data.variable.Continuous('a%i'%x) for x in range(5)]) 
     39d = Orange.data.Domain([Orange.feature.Continuous('a%i'%x) for x in range(5)]) 
    4040a = numpy.array([[1, 2, 3, 4, 5], [5, 4, 3, 2, 1]]) 
    4141t = Orange.data.Table(a) 
Note: See TracChangeset for help on using the changeset viewer.