Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/4677#discussion_r25138909
--- Diff: docs/mllib-ensembles.md ---
@@ -427,6 +427,18 @@ We omit some decision tree parameters since those are
covered in the [decision t
* **`algo`**: The algorithm or task (classification vs. regression) is set
using the tree [Strategy] parameter.
+#### Validation while training
+
+Gradient boosting can overfit when trained with more number of trees. In
order to prevent overfitting, it might
+be useful to validate while training. The method **`runWithValidation`**
has been provided to make use of this
+option. It takes a pair of RDD's as arguments, the first one being the
training dataset and the second being the validation dataset.
+
+The training is stopped when the improvement in the validation error is
not more than a certain tolerance
+(supplied by the **`validationTol`** argument in **`BoostingStrategy`**).
In practice, the validation error
--- End diff --
We generally don't use bold for arguments in the docs, but you could link
to the API docs.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]