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
DOC List estimators that supports missing data in user guide #23198
DOC List estimators that supports missing data in user guide #23198
Conversation
Hi @MaxwellLZH, thanks for your follow-up.
Also, do you mind editing the description with "Fixes" or "Solves" and the issue number just after? This will link the issue to the PR and close the issue once the PR is merged. Thanks! |
HI @cmarmo, I've edited the description as suggested. I'm kind of stuck with the formatting here, I checked the output string (as shown below), which seems to have the right format, but it's still shown as plain text rather than markdown in the generated HTML :(, would you mind help take a look at the code here, thank you!
|
Hi @MaxwellLZH I'm not an expert in sphinx and docutils.... so, please, bear with me. I still need to figure out how the links to the estimators are represented.... sorry... |
Hi @cmarmo, thank you for the instructions! I will take a look at using bullet_list node this week :) |
Sorry, I tried to figure out how to work with If someone familiar with sphinx and docutils could help move on with this PR or give some instructions on how to make it work would be really appreciated ! |
@MaxwellLZH I have opened a pull request to your branch. |
Convert to node structure.
Hi @cmarmo, thank you so much for helping! I've updated the estimator links and checks it's working now :) |
doc/sphinxext/allow_nan.py
Outdated
try: | ||
est = _construct_instance(est_class) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this raises a SkipTest
exception. In those cases, I think we can skip without warning, since warning is not that actionable here.
try: | |
est = _construct_instance(est_class) | |
except: | |
from contextlib import supress | |
... | |
with suppress(SkipTest): | |
est = _construct_instance(est_class) |
I suspect the "Estimators that handle NaN values" section is for non meta-estimators anyways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense! I've updated code as suggested :)
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
doc/sphinxext/allow_nan.py
Outdated
@@ -0,0 +1,59 @@ | |||
from sklearn.utils import all_estimators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with the class name, can you rename this: doc/sphinxext/allow_nan_estimators.py
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated :)
update doc/conf Co-authored-by: Thomas J. Fan <[email protected]>
…learn#23198) Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Lise <[email protected]> Co-authored-by: Chiara Marmo <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Lise <[email protected]> Co-authored-by: Chiara Marmo <[email protected]>
Fixes #21382. This is based on the work of
lisekleiber
What does this implement/fix? Explain your changes.
Code refactoring and adding formatting as suggested in the original PR #22096