Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4677#discussion_r25138910
  
    --- 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
    +decreases with the increase in number of trees and then increases as the 
model starts to overfit. There might
    --- End diff --
    
    "decreases with the increase in number of trees and then increases" --> 
"decreases initially and later increases"


---
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]

Reply via email to