Changeset 10041:47942ac618f7 in orange


Ignore:
Timestamp:
02/08/12 09:43:07 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
d647faf35104b48cd7535360763e1179953e2a62
Message:

Absolute path to relative.

File:
1 edited

Legend:

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

    r10036 r10041  
    99 
    1010print "\nYoung or presbyopic with astigmatism" 
    11 fya = Orange.data.filter.Values(domain = data.domain) 
     11fya = Orange.data.filter.Values(domain=data.domain) 
    1212fya["age"] = "young" 
    1313print "\nYoung examples\n" 
     
    3232    print ex 
    3333 
    34 fr = Orange.data.filter.Values(domain = data.domain) 
     34fr = Orange.data.filter.Values(domain=data.domain) 
    3535fr[3] = "reduced" 
    3636 
     
    4848############ THIS IS WHAT YOU CAN DO WITH CONTINUOUS ATTRIBUTES 
    4949 
    50 data = Orange.data.Table("/Users/tomazc/workspace/orange/Orange/doc/reference/iris.tab") 
    51  
    52 fcont = Orange.data.filter.Values(domain = data.domain) 
     50data = Orange.data.Table("iris.tab") 
     51 
     52fcont = Orange.data.filter.Values(domain=data.domain) 
    5353 
    5454fcont[0] = (Orange.data.filter.ValueFilter.Equal, 4.59999999999999) # This is 
     
    9898    ex["name"] = str(ex.getclass()) 
    9999 
    100 fstr = Orange.data.filter.Values(domain = data.domain) 
     100fstr = Orange.data.filter.Values(domain=data.domain) 
    101101fstr["name"] = "Iris-setosa" 
    102102print "\n\nSetosae" 
     
    200200 
    201201print "\nYoung or presbyopic with astigmatism - as references" 
    202 fya = Orange.data.filter.Values(domain = data.domain) 
     202fya = Orange.data.filter.Values(domain=data.domain) 
    203203fya["age"] = "young" 
    204204print "\nYoung examples\n" 
     
    219219 
    220220data = Orange.data.Table("lenses") 
    221 fya = Orange.data.filter.Values(domain = data.domain) 
     221fya = Orange.data.filter.Values(domain=data.domain) 
    222222fya["age"] = "young" 
    223223print "The data contains %i young fellows" % fya.count(data) 
Note: See TracChangeset for help on using the changeset viewer.