-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add SharpLearning.XGBoost project #68
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…to nuget package before merge to master.
…to use the filesystem directly because of how the XGBoost models are saved. Also, the target name to target index mapping needs to be saved separately. XGBoost expects the mapping to be sequential from [0;numberOfClasses].
…tem directly because of how XGBoost saves its models
mdabros
changed the title
[WIP] Add Sharplearning.XGBoost project
[WIP] Add SharpLearning.XGBoost project
May 16, 2018
…ck" connot pack the project because of how the native dll is included in the picnet.xgboost.net package.
…radientBoost.Models
…converted models don't preduce the exact same output, so more investigation has to be made for the conversion to work
mdabros
changed the title
[WIP] Add SharpLearning.XGBoost project
Add SharpLearning.XGBoost project
May 20, 2018
Wow Mads, this is great news! Excellent work! Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a more efficient alternative to
SharpLearning.GradientBoost
. XGBoost is faster on CPU and also supports GPU learning. However, it does have native dependencies, so might not be ideal for all platforms and situations.A small test comparing the
RegressionXGBoostLearner
and theRegressionGradientBoostLearner
from SharpLearning on a medium sized regression task.Dataset: YearPredictionMSD
Rows: 515345
Cols: 90
Hardware:
CPU: Core i7-4770
GPU: GTX-1070
Model parameters:
MaximumTreeDepth
: 7Estimators
: 152colSampleByTree
: 0.45colSampleByLevel
: 0.77Training time compared using XGBoost in
histogram
andexact
mode on GPU and CPU:As can be seen, XGBoost can be up to 70 times faster, when using the histogram based tree method. Using the exact method, which is more similar to the method from SharpLearning.GradientBoost, the speed up is still around 10 when using GPU, and 5 when using CPU.
Missing tasks before the PR can be completed:
Linear
,Tree
andDart
, to only show relevant hyperparameters for each in the constructors.Booster.Dispose()
.