-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Make some functions from Dask module class methods #3832
Comments
Hi @StrikerRUS, I am a beginner and learning to contribute in open source. I am not sure if I understand the whole issue, but it seems interesting. If you can guide me, I think I can resolve it. Do I add these: LightGBM/python-package/lightgbm/dask.py Line 179 in b8fc476
and LightGBM/python-package/lightgbm/dask.py Line 337 in b8fc476
inside the _LGBMModel class and change LightGBM/python-package/lightgbm/dask.py Line 395 in b8fc476
model = self._train(...) and return statements like LightGBM/python-package/lightgbm/dask.py Line 443 in b8fc476
return super()._predict(...)
|
Hi @ShrillShrestha , thanks for the offer! But @StrikerRUS I disagree with the label "good first issue" on this one. This will involve some design discussions that I think should be done by maintainers. It's not as simple as just moving the code around, because the decision here might be based on a discussion (that we have not had yet) about whether the Dask module should support a non-scikit, functional API similar to
@ShrillShrestha all that said...we would love you help on one other issues. Could you try #3833? |
Makes sense! I was not aware of plans to support functions from standard API Feel free to close this issue because I guess code refactoring indeed will be tightened to decisions we will make. |
This issue 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. |
It will be good to have
_train()
and_predict()
functions (at least them, very possibly some other functions can be made methods) in a form of_LGBMModel
's methods. It will improve encapsulation in Dask module.LightGBM/python-package/lightgbm/dask.py
Line 179 in ac706e1
LightGBM/python-package/lightgbm/dask.py
Line 337 in ac706e1
#3515 (comment)
The text was updated successfully, but these errors were encountered: