Skip to content

Commit ab6131d

Browse files
authored
Merge pull request lukas#61 from lukas/cf/fix-issue30
removes unnecessary call to .fit before cross-validating
2 parents 47dafef + 4cf8745 commit ab6131d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/scikit/pipeline-bigrams-cross-validate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
p = Pipeline(steps=[('counts', CountVectorizer(ngram_range=(1, 1))),
1717
('multinomialnb', MultinomialNB())])
1818

19-
p.fit(fixed_text, fixed_target)
20-
2119
from sklearn.model_selection import cross_val_score
2220

2321
scores = cross_val_score(p, fixed_text, fixed_target, cv=10)

0 commit comments

Comments
 (0)