Skip to content

Commit

Permalink
Changed loss to new keyword in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aldro61 committed May 30, 2017
1 parent 7d22469 commit a1ebd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmit/tests/test_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_noiseless_dataset_1_linear(self):
np.arange(len(y)).reshape(-1, 1), # Good feature
np.zeros(len(y)).reshape(-1, 1))) # Bad feature

estimator = MaxMarginIntervalTree(margin=0.0, loss="hinge")
estimator = MaxMarginIntervalTree(margin=0.0, loss="linear_hinge")
estimator.fit(X, y)

assert len(estimator.tree_.rules) == 1
Expand Down

0 comments on commit a1ebd1b

Please sign in to comment.