apache/spark — pull request #3461 by jkbradley (2014-11-26 01:05:34+00:00)
Title: [SPARK-4580] [SPARK-4610] [mllib] Documentation for tree ensembles + DecisionTree API fix

Major changes:
* Added documentation for tree ensembles
* Added examples for tree ensembles
* **API change**: Standardized the tree parameter for the number of classes (for classification)

Minor changes:
* Updated decision tree documentation
* Updated existing tree and tree ensemble examples
* Use train/test split, and compute test error instead of training error.
* Fixed decision_tree_runner.py to actually use the number of classes it computes from data. (small bug fix)

Note: I know this is a lot of lines, but most is covered by:
* Programming guide sections for gradient boosting and random forests. (The changes are probably best viewed by generating the docs locally.)
* New examples (which were copied from the programming guide)
* The "numClasses" renaming

CC: @mengxr @manishamde @codedeft