source: orange/Orange/doc/reference/MeasureAttribute4.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 468 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1# Description: Shows why ReliefF needs to check the cached neighbours
2# Category:    statistics
3# Classes:     MeasureAttribute_relief
4# Uses:        iris
5# Referenced:  MeasureAttribute.htm
6
7import orange
8data = orange.ExampleTable("iris")
9
10r1 = orange.MeasureAttribute_relief()
11r2 = orange.MeasureAttribute_relief(checkCachedData = False)
12
13print "%.3f\t%.3f" % (r1(0, data), r2(0, data))
14for ex in data:
15    ex[0] = 0
16print "%.3f\t%.3f" % (r1(0, data), r2(0, data))
Note: See TracBrowser for help on using the repository browser.