Skip to content

Commit

Permalink
Test on another dataset, to stabilize the ann mrpt test case, which s…
Browse files Browse the repository at this point in the history
…ometimes fails on small datasets.
  • Loading branch information
zoq committed Apr 5, 2017
1 parent ca2094a commit 4d9c8ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/benchmark_ann.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class ANN_MRPT_TEST(unittest.TestCase):
Test initialization.
'''
def setUp(self):
self.dataset = ['datasets/iris_train.csv', 'datasets/iris_test.csv',
'datasets/iris_labels.csv']
self.dataset = ['datasets/optdigits_train.csv', 'datasets/optdigits_test.csv']
self.verbose = False
self.timeout = 9000

Expand All @@ -75,7 +74,7 @@ def test_Constructor(self):
Test the 'RunMetrics' function.
'''
def test_RunMetrics(self):
result = self.instance.RunMetrics("-k 10 -n 10")
result = self.instance.RunMetrics("-k 5 -n 5")
self.assertTrue(result["Runtime"] > 0)

if __name__ == '__main__':
Expand Down

0 comments on commit 4d9c8ec

Please sign in to comment.