source: orange/Orange/testing/unit/tests/test_distance.py @ 9724:318e91106d47

Revision 9724:318e91106d47, 1.2 KB checked in by markotoplak, 2 years ago (diff)

Renames in Orange.distance.

Line 
1import unittest
2from Orange.misc import testing
3from Orange.misc.testing import datasets_driven, test_on_data
4
5from Orange.distance import *
6
7@datasets_driven
8class TestEuclideanDistance(testing.DistanceTestCase):
9    DISTANCE_CONSTRUCTOR = Euclidean()
10
11@datasets_driven   
12class TestMannhatanDistance(testing.DistanceTestCase):
13    DISTANCE_CONSTRUCTOR = Manhattan()
14   
15@datasets_driven
16class TestHammingDistance(testing.DistanceTestCase):
17    DISTANCE_CONSTRUCTOR = Hamming()
18   
19@datasets_driven
20class TestReliefDistance(testing.DistanceTestCase):
21    DISTANCE_CONSTRUCTOR = Relief()
22
23@datasets_driven
24class TestPearsonRDistance(testing.DistanceTestCase):
25    DISTANCE_CONSTRUCTOR = PearsonR()
26
27@datasets_driven
28class TestSpearmanRDistance(testing.DistanceTestCase):
29    DISTANCE_CONSTRUCTOR = SpearmanR()
30   
31@datasets_driven
32class TestPearsonRAbsoluteDistance(testing.DistanceTestCase):
33    DISTANCE_CONSTRUCTOR = PearsonRAbsolute()
34   
35@datasets_driven
36class TestSpearmanRAbsoluteDistance(testing.DistanceTestCase):
37    DISTANCE_CONSTRUCTOR = SpearmanRAbsolute()
38   
39@datasets_driven
40class TestMahalanobisDistance(testing.DistanceTestCase):
41    DISTANCE_CONSTRUCTOR = Mahalanobis()
42   
43if __name__ == "__main__":
44    unittest.main()
Note: See TracBrowser for help on using the repository browser.