Skip to content

Commit 6a82a2e

Browse files
committed
Merge pull request scikit-learn#6755 from hnykda/hnykda-fix-votingclassifier-example
Doc: importing VotingClassifier in the example
2 parents 97e7245 + 7d2d927 commit 6a82a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/ensemble/voting_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class VotingClassifier(BaseEstimator, ClassifierMixin, TransformerMixin):
6161
>>> import numpy as np
6262
>>> from sklearn.linear_model import LogisticRegression
6363
>>> from sklearn.naive_bayes import GaussianNB
64-
>>> from sklearn.ensemble import RandomForestClassifier
64+
>>> from sklearn.ensemble import RandomForestClassifier, VotingClassifier
6565
>>> clf1 = LogisticRegression(random_state=1)
6666
>>> clf2 = RandomForestClassifier(random_state=1)
6767
>>> clf3 = GaussianNB()

0 commit comments

Comments
 (0)