support DART - new regularization = dropout trees during learning
There is nice article about dropout from neural nets, applied to gradient boosting:
http://arxiv.org/pdf/1505.01866.pdf
It is about drop out some trees during learning process and rescale weight of trees because of that... It can help to accuracy...
Thanx for consideration...
This should not be too hard to add by adding a new gradient booster, or extending current gbtree.
I would suggest:
- extending gbtree
- new parameter 'dart_dropout', 'dart_p' or something in that direction (float, range [0,1], default: 0)
thoughts?
I've created a prototype.(not tested yet) https://github.com/marugari/xgboost/tree/prototype_dart
@marugari It would be great if you can run some benchmarks and see the performance, we can look into bring it back to main repo
it improves performance slightly. https://github.com/marugari/xgboost/tree/prototype_dart/tests/dart
This sounds interesting. @marugari Can we also refactored the code a bit?
Since I guess most part of dart could reuse the code of GBTree, and only prediction function needs to be replace. Let us consider use inheritance or a common base code, so the code is cleaner and easier to maintain.
Then I am happy to take a review and bring it to xgboost main repo
@tqchen Sure. I also think Dart shold inherit from GBTree but could not fix duplicate symbols. :cry:
If there is not too much code, we can put two classes both in gbm.cc which should solve the problem
@tqchen If it is agreeable, I can refact the code. The following methods are defined in Dart.
- Configure
- Load
- Save
- DoBoost
- Predict
- CommitModel
- Pred
- DropTrees
- NormalizeTrees
Sounds good.
How's this? https://github.com/marugari/xgboost/commit/d4e3a6b4cee1259be5245ea78ad601aef6b3ca2a
great work @marugari. thank you for bringing DART in.
@marugari This looks good, can you
- rebase your commits so the history of the old dart.cc is removed, another simpler way might be start from a clean fork
- Add a few comments on what dart is, and the algorithms
- Open a pull request and I will do more detailed code review in the PR
- It is likely that you can reuse a few functions, like SaveModel, or change the parent function to isolate the common parts and further reduce the code.
- To prevent the codebase from getting too large, let us avoid ipynb in the main repo. Use markdown and python scripts instead. You can always put ipynb to https://github.com/dmlc/web-data
- Please write an markdown introduction in documents on how dart can be used.
Thanks for the great effort
It has been merged. https://github.com/dmlc/xgboost/commit/949d1e3027727c3238e90de0cc35a666c64fb728
The tutorial is under construction. https://github.com/marugari/xgboost/blob/prototype_dart/doc/tutorials/dart.md
great:)
@marugari any updates on english version of guest blogpost?
Updated. https://github.com/marugari/xgboost/blob/prototype_dart/doc/tutorials/dart.md
looks nice,
- it would be great if you add a few brief sentences to describe DART (like abstract in publication) in the intro.
- Please send the PR to the dmlc blog
- Reference format of other posts to add tags
- https://github.com/dmlc/dmlc.github.io/tree/master/_posts
- Add bio of yourself in the end
- Add reference link to xgboost in the posts
- Add a reference to your japanese version of blog
- Separately, let us send the same post to https://github.com/dmlc/xgboost/tree/master/doc/tutorials
Can I use MathJax in dmlc.github.io?
seems not, maybe use images for formula for safety