-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG+1] use ignore_warnings to catch FutureWarning raised by SGDClassifier #9374
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
[MRG+1] use ignore_warnings to catch FutureWarning raised by SGDClassifier #9374
Conversation
I don't know of a way |
you can raise warnings as errors, right? Or just change that particular warning into a |
sounds like a worthwhile feature to have in pytest. raise an issue there if
the feature does not exist? perhaps by adding a hook into the warning
handler?
…On 16 Jul 2017 8:40 am, "David Nicholson" ***@***.***> wrote:
addresses issue #9365
<#9365>
uses ignore_warnings to catch FutureWarning raised by SGDClassifier
I did not yet eliminate the same warning raised by
PassiveAggressiveClassifier, etc.
@amueller <https://github.com/amueller> do you know of a way to get
nosetests / pytests to output the line numbers *from the test files*
where the warning is raised so I can more easily find the other places that
raise this warning? @raghavrv <https://github.com/raghavrv> and Jacob
tried to help me with that but we couldn't figure it out
------------------------------
You can view, comment on, or merge this pull request online at:
#9374
Commit Summary
- use ignore_warning to catch FutueWarning
File Changes
- *M* sklearn/utils/tests/test_estimator_checks.py
<https://github.com/scikit-learn/scikit-learn/pull/9374/files#diff-0>
(10)
Patch Links:
- https://github.com/scikit-learn/scikit-learn/pull/9374.patch
- https://github.com/scikit-learn/scikit-learn/pull/9374.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9374>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAEz6y0g-irr0Fjhn8KTpgcS0vwIm8T8ks5sOT_dgaJpZM4OZJQS>
.
|
but an easy way would be to set all warnings to raise errors
…On 16 Jul 2017 11:38 am, "Joel Nothman" ***@***.***> wrote:
sounds like a worthwhile feature to have in pytest. raise an issue there
if the feature does not exist? perhaps by adding a hook into the warning
handler?
On 16 Jul 2017 8:40 am, "David Nicholson" ***@***.***>
wrote:
> addresses issue #9365
> <#9365>
>
> uses ignore_warnings to catch FutureWarning raised by SGDClassifier
>
> I did not yet eliminate the same warning raised by
> PassiveAggressiveClassifier, etc.
>
> @amueller <https://github.com/amueller> do you know of a way to get
> nosetests / pytests to output the line numbers *from the test files*
> where the warning is raised so I can more easily find the other places that
> raise this warning? @raghavrv <https://github.com/raghavrv> and Jacob
> tried to help me with that but we couldn't figure it out
> ------------------------------
> You can view, comment on, or merge this pull request online at:
>
> #9374
> Commit Summary
>
> - use ignore_warning to catch FutueWarning
>
> File Changes
>
> - *M* sklearn/utils/tests/test_estimator_checks.py
> <https://github.com/scikit-learn/scikit-learn/pull/9374/files#diff-0>
> (10)
>
> Patch Links:
>
> - https://github.com/scikit-learn/scikit-learn/pull/9374.patch
> - https://github.com/scikit-learn/scikit-learn/pull/9374.diff
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#9374>, or mute the
> thread
> <https://github.com/notifications/unsubscribe-auth/AAEz6y0g-irr0Fjhn8KTpgcS0vwIm8T8ks5sOT_dgaJpZM4OZJQS>
> .
>
|
I ran |
I didn't know this command. Nice! LGTM |
Thanks |
Fixes #9365
uses
ignore_warnings
to catch FutureWarning raised by SGDClassifierI did not yet eliminate the same warning raised by PassiveAggressiveClassifier, etc.
@amueller do you know of a way to get nosetests / pytests to output the line numbers from the test files where the warning is raised so I can more easily find the other places that raise this warning? @raghavrv and Jacob tried to help me with that but we couldn't figure it out