splitFeatures | R Documentation |
splitFeatures
is used internally by fftree
and tally
to find split points on numeric and categorical features.
splitFeatures(data, formula = stats::as.formula(data), ...)
## S4 method for signature 'data.frame'
splitFeatures(
data,
formula = as.formula(data.frame(data)),
splits = "gini",
weights = c(1, 1),
...
)
## S4 method for signature 'matrix'
splitFeatures(
data,
formula = stats::as.formula(data.frame(data)),
splits = "gini",
weights = c(1, 1),
...
)
data |
an object of class |
formula |
|
... |
optional parameters passed to low level function |
splits |
specifies the method used to find a splitting point on numeric and binary features
|
weights |
a numeric vector of length 2 (default: |
A splits object.
data(liver)
splits <- splitFeatures(data = liver, formula = diagnosis~., splits = "median")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.