Skip to content

Commit

Permalink
fix pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Sep 28, 2018
1 parent 14620ff commit 3cf1e74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions mlxtend/classifier/tests/test_ensemble_vote_classifier.py
Expand Up @@ -142,7 +142,9 @@ def test_EnsembleVoteClassifier_weights():

def test_EnsembleVoteClassifier_gridsearch():

clf1 = LogisticRegression(solver='liblinear', multi_class='ovr', random_state=1)
clf1 = LogisticRegression(solver='liblinear',
multi_class='ovr',
random_state=1)
clf2 = RandomForestClassifier(random_state=1)
clf3 = GaussianNB()
eclf = EnsembleVoteClassifier(clfs=[clf1, clf2, clf3], voting='soft')
Expand All @@ -163,7 +165,9 @@ def test_EnsembleVoteClassifier_gridsearch():

def test_EnsembleVoteClassifier_gridsearch_enumerate_names():

clf1 = LogisticRegression(solver='liblinear', multi_class='ovr', random_state=1)
clf1 = LogisticRegression(solver='liblinear',
multi_class='ovr',
random_state=1)
clf2 = RandomForestClassifier(random_state=1)
eclf = EnsembleVoteClassifier(clfs=[clf1, clf1, clf2])

Expand Down
1 change: 1 addition & 0 deletions mlxtend/evaluate/tests/test_paired_ttest_5x2cv.py
Expand Up @@ -96,6 +96,7 @@ def test_scoring():
assert round(t, 3) == -1.506, t
assert round(p, 3) == 0.192, p


def test_regressor():
X, y = boston_housing_data()
reg1 = Lasso(random_state=1)
Expand Down
3 changes: 2 additions & 1 deletion mlxtend/feature_selection/tests/test_column_selector.py
Expand Up @@ -40,7 +40,8 @@ def test_ColumnSelector_in_gridsearch():
iris = datasets.load_iris()
X, y = iris.data, iris.target
pipe = make_pipeline(ColumnSelector(),
LogisticRegression(multi_class='ovr', solver='liblinear'))
LogisticRegression(multi_class='ovr',
solver='liblinear'))
grid = {'columnselector__cols': [[1, 2], [1, 2, 3], 0, [1]],
'logisticregression__C': [0.1, 1.0, 10.0]}

Expand Down

0 comments on commit 3cf1e74

Please sign in to comment.