You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
examples/applications/wikipedia_principal_eigenvector.py (:77: DeprecationWarning: The 'cachedir' parameter has been deprecated in version 0.12 and will be removed in version 0.14.
You provided "cachedir='.'", use "location='.'" instead.
memory = Memory(cachedir="."))
examples/gaussian_process/plot_gpr_prior_posterior.py
Issue is actually a complex issues based on the mathematical process as the variance of a data set can not result in a negative value
@martinoywa I updated the list to mark the ones which are fixed. But there are a few open PRs, which you need to check yourself and see which examples they're trying to fix :)
Just wanted to mention that IMO warnings should not be removed from examples at all cost. Sometimes it's OK to have warnings in examples.
For instance, if a given warnings yields a ConvergenceWarning and it's difficult to address it either by increasing the number or iterations or the tolerance (assuming that could happen), I would rather it was left there as an illustration that the model hasn't converged than filtered out with warning filters.
For instance, if a given warnings yields a ConvergenceWarning and it's difficult to address it either by increasing the number or iterations or the tolerance (assuming that could happen), I would rather it was left there as an illustration that the model hasn't converged than filtered out with warning filters.
That's why I want the very specific warnings to be caught and not all of them. The user would then realize that the model is not converging if the warning is caught and there's a comment in the code. I don't think the purpose of any of the examples we have is to show that some models don't converge. The fact that they don't, is a side effect, not the purpose of the example. Also, ideally we'd actually fail on warnings in the CI, so that we don't explode on warnings every now and then as we usually do.
I don't think the purpose of any of the examples we have is to show that some models don't converge. The fact that they don't, is a side effect, not the purpose of the example.
No, but some models don't converge in real applications. I'm not sure that hiding from users what it would look like is preferable.
if the warning is caught and there's a comment in the code.
In what way is that better than just leaving the warning in the example? It adds the complexity to the example due to warning filters and hides things from the user by creating an artificially smooth experience.
If it was library or user code in production I agree that all warnings need to be addressed. For examples I'm less convinced.
Another point to consider is that examples often serve as a starting point for user code. In which case, when an example is adapted to run on some other data, having any kind of warning filters is just harmful.
@adrinjalali , we are planning to use this issue for the Paris sprint: I have reviewed all the examples and made a new checklist. Could you please update the description with it? I think that the issue will be more readable if the checklist is at the top of the page. Thanks a lot!
Activity
thomasjuma commentedon Jun 22, 2019
Working on "examples/linear_model/plot_omp.py"
KenitoInc commentedon Jun 22, 2019
@thomasbshop I have already pushed a PR for that
KenitoInc commentedon Jun 22, 2019
I am working to Fix warnings on examples/preprocessing/plot_map_data_to_normal.py
rodneyosodo commentedon Jun 22, 2019
I am working on Fix warnings in examples #14117 examples/neighbors/plot_nca_illustration.py
robinkiplangat commentedon Jun 22, 2019
I am working on Fix warnings in examples - examples/preprocessing/plot_map_data_to_normal.py
KenitoInc commentedon Jun 22, 2019
I have done a PR on this already. Check the thread above
KenitoInc commentedon Jun 22, 2019
cc @4bic
GideonSonoiya1 commentedon Jun 22, 2019
examples/gaussian_process/plot_gpr_prior_posterior.py
Issue is actually a complex issues based on the mathematical process as the variance of a data set can not result in a negative value
rodneyosodo commentedon Jun 22, 2019
Can someone update the list for the issues that are still available
rodneyosodo commentedon Jun 22, 2019
I am working on Fix warnings in examples #14117 examples/decomposition/plot_faces_decomposition.py
KenitoInc commentedon Jun 22, 2019
I am fixing examples/manifold/plot_lle_digits.py
wimlds \n Fix warnings in examples scikit-learn#14117 \n updated para…
martinoywa commentedon Jun 24, 2019
Is it possible for us to get an updated list?
adrinjalali commentedon Jun 25, 2019
@martinoywa I updated the list to mark the ones which are fixed. But there are a few open PRs, which you need to check yourself and see which examples they're trying to fix :)
6 remaining items
rcwoolston commentedon Jul 13, 2019
Next up for me: examples/plot_johnson_lindenstrauss_bound.py
deniederhut commentedon Jul 13, 2019
👀 woah, is that all of them?
amueller commentedon Jul 13, 2019
If you're looking for a new checklist there's one here: #14312 ;)
But it's also important to get these actually merged, I'll start reviewing
rth commentedon Jul 24, 2019
Just wanted to mention that IMO warnings should not be removed from examples at all cost. Sometimes it's OK to have warnings in examples.
For instance, if a given warnings yields a
ConvergenceWarningand it's difficult to address it either by increasing the number or iterations or the tolerance (assuming that could happen), I would rather it was left there as an illustration that the model hasn't converged than filtered out with warning filters.adrinjalali commentedon Jul 24, 2019
That's why I want the very specific warnings to be caught and not all of them. The user would then realize that the model is not converging if the warning is caught and there's a comment in the code. I don't think the purpose of any of the examples we have is to show that some models don't converge. The fact that they don't, is a side effect, not the purpose of the example. Also, ideally we'd actually fail on warnings in the CI, so that we don't explode on warnings every now and then as we usually do.
rth commentedon Jul 24, 2019
No, but some models don't converge in real applications. I'm not sure that hiding from users what it would look like is preferable.
In what way is that better than just leaving the warning in the example? It adds the complexity to the example due to warning filters and hides things from the user by creating an artificially smooth experience.
If it was library or user code in production I agree that all warnings need to be addressed. For examples I'm less convinced.
Another point to consider is that examples often serve as a starting point for user code. In which case, when an example is adapted to run on some other data, having any kind of warning filters is just harmful.
rth commentedon Jul 24, 2019
Also one need to maintain comments in the code that get out of date. While that's not the case with runtime warnings.
cmarmo commentedon Jan 13, 2020
@adrinjalali , we are planning to use this issue for the Paris sprint: I have reviewed all the examples and made a new checklist. Could you please update the description with it? I think that the issue will be more readable if the checklist is at the top of the page. Thanks a lot!
adrinjalali commentedon Jan 13, 2020
Thanks @cmarmo, done.
marimeireles commentedon Jan 25, 2020
Hello, I'm getting
examples/neural_networks/plot_mnist_filters.py(ConvergenceWarning) for the WiMLDS Berlin Sprint =)malteserteresa commentedon Jan 25, 2020
Myself and @andra-pumnea will change the cache location
ksslng commentedon Jan 28, 2020
I'm taking care of
examples/plot_partial_dependence_visualization_api.py (FutureWarning).TiphaineV commentedon Jan 28, 2020
I'll take care of
examples/neural_networks/plot_mlp_alpha.py (ConvergenceWarning)hs-nazuna commentedon Jan 31, 2020
I tried to fix
examples/neighbors/approximate_nearest_neighbors.pyand submitted a PR.