Skip to content
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

UserWarnings in the documentation #29055

Open
4 of 7 tasks
ArturoAmorQ opened this issue May 20, 2024 · 7 comments
Open
4 of 7 tasks

UserWarnings in the documentation #29055

ArturoAmorQ opened this issue May 20, 2024 · 7 comments
Labels
Documentation help wanted Meta-issue General issue associated to an identified list of tasks

Comments

@ArturoAmorQ
Copy link
Member

ArturoAmorQ commented May 20, 2024

Describe the issue linked to the documentation

Some UserWarning are present in the dev documentation and need to be fixed.
Here is a list:

Contributors willing to address this issue, please fix one example per pull request. It is ok to fix other warnings or errors in a given example.

Thanks for your help!

Suggest a potential alternative/fix

No response

@ArturoAmorQ ArturoAmorQ added Documentation Needs Triage Issue requires triage labels May 20, 2024
@ojoaomorais
Copy link
Contributor

I'm working on plot_cv_indices.html !

@glemaitre glemaitre added help wanted and removed Needs Triage Issue requires triage labels May 20, 2024
@ojoaomorais
Copy link
Contributor

ojoaomorais commented May 20, 2024

Hello @ArturoAmorQ, my local build is showing different UserWarnings or, in some cases, showing nothing. Maybe it's the matplotlib package version? I changed from 3.9 to 3.3.4 (as seen here), but nothing changes. This is the command i use to build:

pip install --editable . \ --verbose --no-build-isolation \ --config-settings editable-verbose=true

My version:

Python dependencies:
sklearn: 1.6.dev0
pip: 24.0
setuptools: 69.5.1
numpy: 1.26.4
scipy: 1.13.0
Cython: 3.0.10
pandas: 2.2.2
matplotlib: 3.3.4
joblib: 1.4.2
threadpoolctl: 3.5.0
Built with OpenMP: True
threadpoolctl info:
user_api: blas
internal_api: openblas
num_threads: 2
prefix: libopenblas
filepath: /opt/anaconda3/envs/scikit-learn/lib/libopenblasp-r0.3.27.dylib
version: 0.3.27
threading_layer: openmp
architecture: Sandybridge
user_api: openmp
internal_api: openmp
num_threads: 4
prefix: libomp
filepath: /opt/anaconda3/envs/scikit-learn/lib/libomp.dylib
version: None

@Charlie-XIAO
Copy link
Contributor

The matplolib version used in CI is 3.8.4 (not minimum, see this search link), though I don't think it's related.

@lucyleeow
Copy link
Member

Note that it is possible to ignore warnings for all examples by adding to the doc/conf.py file. If we have a recurring warning, this may be nice and keeps our examples cleaner. Indeed we already ignore a warning:

warnings.filterwarnings(

@lucyleeow lucyleeow added the Meta-issue General issue associated to an identified list of tasks label May 23, 2024
@ojoaomorais
Copy link
Contributor

I'm working on tree/plot_iris_dtc.html !!

@ojoaomorais
Copy link
Contributor

Hello @ArturoAmorQ, my local build is showing different UserWarnings or, in some cases, showing nothing. Maybe it's the matplotlib package version? I changed from 3.9 to 3.3.4 (as seen here), but nothing changes. This is the command i use to build:

pip install --editable . \ --verbose --no-build-isolation \ --config-settings editable-verbose=true

My version:

Python dependencies: sklearn: 1.6.dev0 pip: 24.0 setuptools: 69.5.1 numpy: 1.26.4 scipy: 1.13.0 Cython: 3.0.10 pandas: 2.2.2 matplotlib: 3.3.4 joblib: 1.4.2 threadpoolctl: 3.5.0 Built with OpenMP: True threadpoolctl info: user_api: blas internal_api: openblas num_threads: 2 prefix: libopenblas filepath: /opt/anaconda3/envs/scikit-learn/lib/libopenblasp-r0.3.27.dylib version: 0.3.27 threading_layer: openmp architecture: Sandybridge user_api: openmp internal_api: openmp num_threads: 4 prefix: libomp filepath: /opt/anaconda3/envs/scikit-learn/lib/libomp.dylib version: None

FYI, it was missing the jupyterlite_sphinx lib. After install it i can see the warnings.

@ojoaomorais
Copy link
Contributor

Working on plot_sgd_iris and plot_logistic_multinomial !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation help wanted Meta-issue General issue associated to an identified list of tasks
Projects
None yet
Development

No branches or pull requests

5 participants