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

    r9812 r9927  
    8282 
    8383 
    84 newclass = Orange.data.variable.Discrete("is versicolor", values = ["no", "yes"]) 
     84newclass = Orange.feature.Discrete("is versicolor", values = ["no", "yes"]) 
    8585newclass.get_value_from = lambda ex, w: ex["iris"]=="Iris-versicolor" 
    8686newdomain = Orange.data.Domain(data.domain.attributes, newclass) 
Note: See TracChangeset for help on using the changeset viewer.