File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1414from sklearn .grid_search import GridSearchCV
1515from sklearn .ensemble import AdaBoostClassifier
1616from sklearn .ensemble import AdaBoostRegressor
17- from sklearn .tree import DecisionTreeClassifier
1817from sklearn .utils import shuffle
1918from 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
6766def test_boston ():
Original file line number Diff line number Diff line change 55from collections import Mapping , Sequence
66from operator import itemgetter
77
8- import sys
98import numpy as np
109import scipy .sparse as sp
1110
You can’t perform that action at this time.
0 commit comments