Skip to content

Commit 7d4034a

Browse files
committed
COSMIT removed unused imports, fixed error message in test of boosting
1 parent 171f682 commit 7d4034a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sklearn/ensemble/tests/test_weight_boosting.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from sklearn.grid_search import GridSearchCV
1515
from sklearn.ensemble import AdaBoostClassifier
1616
from sklearn.ensemble import AdaBoostRegressor
17-
from sklearn.tree import DecisionTreeClassifier
1817
from sklearn.utils import shuffle
1918
from sklearn import datasets
2019

@@ -60,8 +59,8 @@ def test_iris():
6059
clf = AdaBoostClassifier(algorithm=alg)
6160
clf.fit(iris.data, iris.target)
6261
score = clf.score(iris.data, iris.target)
63-
assert score > 0.9, "Failed with criterion %s and score = %f" % \
64-
(c, score)
62+
assert score > 0.9, "Failed with algorithm %s and score = %f" % \
63+
(alg, score)
6564

6665

6766
def test_boston():

sklearn/feature_extraction/dict_vectorizer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections import Mapping, Sequence
66
from operator import itemgetter
77

8-
import sys
98
import numpy as np
109
import scipy.sparse as sp
1110

0 commit comments

Comments
 (0)