fit_classification_tree | R Documentation |
klassets_response_xy
objectFit classification tree to klassets_response_xy
object
fit_classification_tree(df, type = "prob", maxdepth = Inf, alpha = 0.05, ...)
df |
A object from |
type |
Type of prediction, one of prob, response, node. |
maxdepth |
Max depth of the tree. Same used in |
alpha |
Alpha value, same used in |
... |
Options for |
set.seed(123) df <- sim_response_xy(n = 1000, relationship = function(x, y) x**2 > sin(y)) plot(df) # default type = "prob" df_tree_prob <- fit_classification_tree(df) df_tree_prob df_tree_resp <- fit_classification_tree(df, type = "response") df_tree_resp df_tree_node <- fit_classification_tree(df, type = "node") df_tree_node plot(df_tree_prob) plot(df_tree_resp) plot(df_tree_node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.