-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FutureWarning
s in the documentation
#24876
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
Hi, may I work on applications/plot_cyclical_feature_engineering.html? |
Sure, feel free to open a PR mentioning this issue :) |
Sorry, this is my first time contributing to sci-learn. When you say fix, should we make it so the future warnings are accurate and change the defaults? Or instead address the TODO's in the code and then remove the warnings? So, in the case of
|
You have to change the code of each given example so that the warning is no longer raised. In the case of
So the thing to do is to set print("Fitting model on a small sub-sample of the data")
t0 = time()
image_array_sample = shuffle(image_array, random_state=0, n_samples=1_000)
- kmeans = KMeans(n_clusters=n_colors, random_state=0).fit(image_array_sample)
+ kmeans = KMeans(n_clusters=n_colors, n_init="auto", random_state=0).fit(image_array_sample)
print(f"done in {time() - t0:0.3f}s.") |
Submitted a PR to fix |
Working on |
Working on |
Working on |
Hi @ArturoAmorQ I am working on cross_decomposition and I found the future warning i.e., "_/srv/conda/envs/notebook/lib/python3.9/site-packages/sklearn/cross_decomposition/pls.py:503: FutureWarning: The attribute This warning cannot be suppressed by changing anything from the code in documentation, I think we need to edit the main file of 'coef_' from here: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/cross_decomposition/_pls.py In line number 504 we need to make changes. Or we can just suppress it by using simplefilter. |
Changing the We will have to keep this particular example in mind. Thanks for the report @Reddragonemperor58 ! |
Welcome, you could remove it from the list. |
Working on |
Hey @ArturoAmorQ for model_selection/plot_successive_halving_heatmap.html the warning raised is "In a future version, the Index constructor will not infer numeric dtypes when passed object-dtype sequences (matching Series behavior)" is it okay to suppress the warning using ignore as they did it in pandas issue ? |
working on manifold/plot_manifold_sphere.html |
Related to scikit-learn#24876 What does this implement/fix? Explain your changes. Fix FutureWarning in manifold/plot_manifold_sphere.html /home/runner/work/scikit-learn/scikit-learn/sklearn/manifold/_mds.py:299: FutureWarning: The default value of `normalized_stress` will change to `'auto'` in version 1.4. To suppress this warning, manually set the value of `normalized_stress`. by explicit passing normalized_stress="auto"
Thanks to everyone who contributed on this issue! |
Describe the issue linked to the documentation
Some
FutureWarning
s are present in the dev documentation and need to be fixed.Here is a list:
cross_decomposition/plot_compare_cross_decomposition.htmlmodel_selection/plot_grid_search_text_feature_extraction.htmlDOC Fix FutureWarning in model_selection/plot_grid_search_text_feature_extraction.html #24961Contributors willing to address this issue, please offer one example per pull request.
Thanks for your help!
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: