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/lookup-lookup.py

    r9823 r9927  
    1111a, b, e = monks.domain["a"], monks.domain["b"], monks.domain["e"] 
    1212 
    13 ab = Orange.data.variable.Discrete("a==b", values = ["no", "yes"]) 
     13ab = Orange.feature.Discrete("a==b", values = ["no", "yes"]) 
    1414ab.get_value_from = Orange.classification.lookup.ClassifierByLookupTable(ab, a, b, 
    1515                    ["yes", "no", "no",  "no", "yes", "no",  "no", "no", "yes"]) 
    1616 
    17 e1 = Orange.data.variable.Discrete("e==1", values = ["no", "yes"]) 
     17e1 = Orange.feature.Discrete("e==1", values = ["no", "yes"]) 
    1818e1.get_value_from = Orange.classification.lookup.ClassifierByLookupTable(e1, e, 
    1919                    ["yes", "no", "no", "no", "?"]) 
Note: See TracChangeset for help on using the changeset viewer.