Description Usage Arguments Value Examples
Print decision tree performance according to different metrics.
1 2 3 4 5 6 |
dat |
Dataframe with truths (column 'target_lab') and estimates (column 'y_hat') of samples from original dataset. |
target_lab |
Name of the column in data that contains target/label information. |
task |
Character string indicating the type of problem, either 'classification' (categorical outcome) or 'regression' (continuous outcome). |
metrics |
A set of metric functions to evaluate decision tree, defaults to common metrics for classification/regression problems. Can be defined with 'yardstick::metric_set'. |
Character string of the decision tree evaluation.
1 | eval_tree(compute_tree(penguins, target_lab = 'species')$dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.