-
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
Merge test_<est>_local_predict and test_<est> tests for Dask module #3833
Comments
@jameslamb, so by merging do you mean modifying one of them to support the functionality of both? I looked through the code and saw some similar statements being implemented, but it would be helpful if you could tell me how I shall navigate/proceed to make the change? |
No problem, ask any questions you need. We're here to help and really thankful for your efforts! You can look at the changes I made in https://github.com/microsoft/LightGBM/pull/3786/files for reference. I eliminated a test in there called So, for example, take LightGBM/tests/python_package_test/test_dask.py Lines 259 to 267 in ac706e1
test_classifier .
To try the tests out yourself locally, you can build from local source cd python-package
python setup.py sdist
pip install dist/lightgbm*.tar.gz and then run just the test you modified pytest tests/python_package_test/test_dask.py::test_classifier |
Thanks, @jameslamb, I went through the reference code you provided. I feel like just deleting the |
That is not correct. You need to move the type of prediction in the link I shared (
You should see a log message that says "The full version of error log was saved into ". Open that file for details on what went wrong compiling LightGBM. |
I think I need to include LightGBM/tests/python_package_test/test_dask.py Lines 279 to 288 in ac706e1
but is in LightGBM/tests/python_package_test/test_dask.py Lines 384 to 390 in ac706e1
Also, I saw tree , tree_types , and tree_learner_type are aliases to each other so that means I can use either one as a parameter name. The same for data and data_parallel , as they are also aliases.Am I right with the above statements? Also, the error was: |
I believe the for the regression tests, we had to omit setting
Yes you are correct! Many of LightGBM's parameters can be provided by aliases. You can see details here https://lightgbm.readthedocs.io/en/latest/Parameters.html#learning-control-parameters.
Make sure that the branch you are working on is up to date with the latest version of git submodule update --recursive |
I was able to run the test, and I go 4 tests passed and 2 failed. I am getting two
at the end of |
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. |
Refer to #3708 (comment) for more details.
The text was updated successfully, but these errors were encountered: