setDataDescription: setDataDescription Save brief description of the dataset used...

Description Usage Arguments Value Examples

View source: R/hhcartr_export_setDataDescription.R

Description

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.

Usage

1
setDataDescription(new_description)

Arguments

new_description

the new dataset description to be saved for the current model.

Value

nothing.

Examples

 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)

hhcartr documentation built on July 2, 2021, 9:06 a.m.