-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[docs] [dask] Add return information to Dask fit() docs (fixes #4402) #4716
Conversation
Looking at the current scikit-learn estimators (Classifier, Regressor) I see that the return type is object, however this seems better (specifying the return type as the estimator itself and linking to the constructor), should we open a new issue to change that? Also looking at scikit-learn docs they specify that the Returns
-------
self : lightgbm.DaskLGBMClassifier
Fitted estimator. WDYT @jameslamb? |
Can this behavior be preserved without LightGBM/python-package/lightgbm/engine.py Lines 163 to 166 in 1cc84b3
https://lightgbm.readthedocs.io/en/latest/pythonapi/lightgbm.train.html#lightgbm.train I think it will be good to match naming schema that is used around all other docstrings. E.g., LightGBM/python-package/lightgbm/dask.py Line 451 in 1cc84b3
|
Ah, just looked through the codebase more carefully and it seems |
Thanks for the reviews! I just updated this to latest @jmoralez I agree with your suggestion to update the same information from the sklearn docstrings. I'll propose those changes in a separate PR. |
Sure, works for me! |
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.
Thank you!
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Fixes #4402, adding
Returns
blocks to the documentation forfit()
method on estimators inlightgbm.dask
.How I tested this
cd docs make clean html open _build/html/index.html
Looks like the docs are rendering correctly.
I also clicked through the links next to
Return type
and confirmed that they link back to the constructor docs for the relevant class.