Description Usage Arguments Value Examples
View source: R/hhcartr_export_setDataDescription.R
This function setDataDescription updates global variable pkg.env$model_data_description with a brief description of the dataset being used to train the current model. It is later used in command output displays and plots.
1 | setDataDescription(new_description)
|
new_description |
the new dataset description to be saved for the current model. |
nothing.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # source: /man/examples/setDataDescription.R
# Basic usage of setDataDescription().
# Note: we need to have a model to modify first.
# load our data.
X <- iris[,1:4]
y <- iris[,5]
# instantiate our model.
clf = HHDecisionTree(n_folds=1,
n_trees=1,
pruning=FALSE,
min_node_impurity=0.0)
# describe what dataset our model is using.
setDataDescription("IRIS Dataset")
# train our model.
vv <- clf$fit(X, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.