Ignore:
Timestamp:
02/06/12 20:01:02 (2 years ago)
Author:
lanumek
Branch:
default
Children:
9835:e48466fc6eb2, 9841:05a160804431
rebase_source:
8cf30121654f25c9cb6d8ac9bdaf163e305d62da
Message:

Changed names of data sets (table replaced with data or name of the data set).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/scoring-relief-caching.py

    r9372 r9823  
    66 
    77import orange 
    8 data = orange.ExampleTable("iris") 
     8iris = orange.ExampleTable("iris") 
    99 
    1010r1 = orange.MeasureAttribute_relief() 
    1111r2 = orange.MeasureAttribute_relief(check_cached_data = False) 
    1212 
    13 print "%.3f\t%.3f" % (r1(0, data), r2(0, data)) 
    14 for ex in data: 
     13print "%.3f\t%.3f" % (r1(0, iris), r2(0, iris)) 
     14for ex in iris: 
    1515    ex[0] = 0 
    16 print "%.3f\t%.3f" % (r1(0, data), r2(0, data)) 
     16print "%.3f\t%.3f" % (r1(0, iris), r2(0, iris)) 
Note: See TracChangeset for help on using the changeset viewer.