Skip to content

Commit

Permalink
[FIX] Classification Tree Sparse Support: text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerneju committed Jul 26, 2017
1 parent 8f814e4 commit 9a13097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orange/widgets/model/tests/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ def test_parameters_unchecked(self):
for par, val in zip(self.parameters, (None, 2, 1))]
self.test_parameters()

def test_sparse_data(self):
def test_sparse_data_classification(self):
"""
Tree can handle sparse data.
Classification Tree can handle sparse data.
GH-2430
"""
table1 = Table("iris")
self.send_signal("Data", table1)
model_dense = self.get_output("Model")
table2 = Table("iris")
table2.X = sp.csr_matrix(table2.X)
self.send_signal("Data", table2)
model_sparse = self.get_output("Model")
self.assertTrue(np.array_equal(model_dense._code, model_sparse._code))
self.assertTrue(np.array_equal(model_dense._thresholds, model_sparse._thresholds))
self.assertTrue(np.array_equal(model_dense._values, model_sparse._values))

0 comments on commit 9a13097

Please sign in to comment.