View source: R/discretize_rpart.R
Dicretizing Continous Values by Decision Tree
1 | discretize_rpart(x, y, maxdepth = 2, minbucket = 10)
|
x |
- data.frame with continues variables |
y |
- Target binary variable |
maxdepth |
- parameter from rpart::rpart.control. It sets number of expected bins. |
minbucket |
- parameter from rpart::rpart.control. It sets minumum size of bin. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.