Description Usage Arguments Value Examples
View source: R/hhcartr_export_print.R
This function will generate a ggplot showing test set accuracy for each tree fold/trial. In future will need to provide support to allow user to customize the plots.
1 2 |
x |
Unused parameter. |
... |
Unused parameter. |
A ggplot of training accuracy.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # source: /man/examples/print.R
# Basic usage of print().
# Note: we need to have a model first.
# load our data.
X <- iris[,1:4]
y <- iris[,5]
# instantiate our model.
clf = HHDecisionTree(n_folds=10,
n_trees=1,
pruning=FALSE,
min_node_impurity=0.0)
# describe what dataset our model is using.
setDataDescription("IRIS Dataset")
# train our model.
model_output <- clf$fit(X, y)
# print fold accuracy distribution from our training data.
print(model_output)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.