-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
more descriptive assignment in Working With Text Data documentation #8285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
PR welcome! I would be in favour of removing the assignment since they are not useful at all, so replacing: text_clf = text_clf.fit(twenty_train.data, twenty_train.target) by: text_clf.fit(twenty_train.data, twenty_train.target) and: _ = text_clf.fit(twenty_train.data, twenty_train.target) by: text_clf.fit(twenty_train.data, twenty_train.target) |
jnothman
pushed a commit
that referenced
this issue
Feb 8, 2017
sergeyf
pushed a commit
to sergeyf/scikit-learn
that referenced
this issue
Feb 28, 2017
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
Closed
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this issue
Jun 14, 2017
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
NelleV
pushed a commit
to NelleV/scikit-learn
that referenced
this issue
Aug 11, 2017
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
paulha
pushed a commit
to paulha/scikit-learn
that referenced
this issue
Aug 19, 2017
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
maskani-moh
pushed a commit
to maskani-moh/scikit-learn
that referenced
this issue
Nov 15, 2017
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
lemonlaug
pushed a commit
to lemonlaug/scikit-learn
that referenced
this issue
Jan 6, 2021
… (scikit-learn#8314) * remove assignment per recommendation * Fix doctests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In the Evaluation of Performance on the Test Set section,
text_clf.fit(twenty_train.data, twenty_train.target)
for an SVM is assigned simply as_
while the assignment for the Naive Bayes classifier above is assigned astext_clf
.http://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html#evaluation-of-the-performance-on-the-test-set
The text was updated successfully, but these errors were encountered: