source: orange/orange/doc/reference/MeasureAttribute4.py @ 4628:e86e22f71d63

Revision 4628:e86e22f71d63, 468 bytes checked in by janezd <janez.demsar@…>, 6 years ago (diff)
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.