source: orange/Orange/testing/regression/tests_20/reference_MeasureAttribute4.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 468 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.