Skip to content

Commit

Permalink
Fixed a failing basket test.
Browse files Browse the repository at this point in the history
  • Loading branch information
astaric committed Sep 19, 2013
1 parent ed00e64 commit 320dc86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Orange/tests/test_classification.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import unittest
import numpy as np

Expand Down Expand Up @@ -157,7 +158,9 @@ def test_multi_class(self):

class SparseTest(unittest.TestCase):
def test_sparse_basket(self):
table = BasketReader().read_file("iris.basket")
current_dir = os.path.dirname(__file__)
dataset = os.path.join(current_dir, "iris.basket")
table = BasketReader().read_file(dataset)
test = Orange.data.Table.from_table_rows(table,
range(0, len(table), 2))
train = Orange.data.Table.from_table_rows(table,
Expand Down

0 comments on commit 320dc86

Please sign in to comment.