-
Notifications
You must be signed in to change notification settings - Fork 50
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
Jupyter notebook example #1
Comments
Original "lightgbm" provides a good python API, which you can refer for using it in jupyter. |
root@ml-dev-66d476d4dd-c5vvk:~/Unbiased_LambdaMart/Unbias_LightGBM/build# make -j4 **Compiled it. Now how to call this in a notebook. I tried doing import lightgbm as lgb error: ModuleNotFoundError: No module named 'lightgbm' could you help. After compiling, what to do to make sure that I can call it like a typical package on Jupyter notebook.** |
Sorry about previous mistake. I checked the python interface, and find that there are some parts need to be modified to adapt our changes. I will fix this issue as soon as possible. Meanwhile, I also provide a really simple script for you to run. After you compile the model, you can find a compiled "lightgbm" file. Move this file into "examples/lambdarank", then execute it by: ./lightgbm config="train.conf" And you can see the log and the trained model. Using the jupyter is exactly the same as modifying "train.conf", so you can have a try before I modify the python interface. |
Hey @acbull, thanks for contributing the great Unbiased LambdaMart. May I know if there's any update on the python API? Thanks! |
Could you let me know how to use it in Jupyter notebook.
Should I add something to lightgbm package ?
Can u add an example
The text was updated successfully, but these errors were encountered: