-
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
Reccommend using a submodule+fork for Unbias_LightGBM #8
Comments
That's a reasonable suggestion. So how to modify the current repository to be a fork of LightGBM? |
The current repository would not be a fork. It would contain a submodule (link to another git repository) to the fork. Before doing any of the following I recommend creating a release. That way your paper is correlated with a specific release (i.e. "This paper is based on v1.0"). Do you recall what LightGBM commit you started at? If so:
Then anytime you clone the current repository you would run If desired you can then attempt to merge in and test with the latest LightGBM changes. As submodules are created at a commit, you may then update the submodule to the latest commit in the fork with If you do not recall the exact commit |
I tried to merge Unbiased_LambdaMart into the original and it is now ready to compile: The submodule method is not easy to track the new version. |
What is it you mean by:
? The main project would reference a specific commit of the submodule (preferably a 'release' commit). |
Sorry for my poor english. I mean It is not easy to upgrade to the latest version of LightGBM (eg: v2.2.4). If forked from microsoft/LightGBM, we can merge upstream changes at any time, just by initiating an merge request |
Yes that would be the idea. Then Even if the decision is not to use the latest LightGBM, it still provides it as a possibility and links the fork |
An alternative that would greatly increase the impact of this methodology is to add this to lightgbm itself. Fork lightgbm, add your implementation, and open a pr to merge it back into the source repo. This seems to be a potentially powerful approach to LTR, I suspect the lightgbm maintainers would be appreciative of the contribution. |
Due to Unbias_LightGBM effectively being a fork of LightGBM, it would be sensible to create a fork of LightGBM with the necessary changes and renamed to Unbais_LightGBM and add that fork as a submodule to this project. The new fork would initially be set to the relevant commit of LightGBM that Unbias_LightGBM is based upon.
This would allow updates and bug fixes to LightGBM to be easily incorporated into this project, as well as additional clarity that Unbias_LightGBM is LightGBM with modification.
The text was updated successfully, but these errors were encountered: