Description Usage Arguments Value Examples
View source: R/connectToData.R
When a trained forest is saved, the training dataset is not saved alongside
it. When it's loaded back up, it can be more convenient (and in some cases
necessary) to import the training dataset back into the Java environment so
that it's readily accessible. There are only two functions that look for the
training dataset: predict
, where you can easily just specify an
alternative dataset, or addTrees
, which requires the training
dataset be connected.
1 | connectToData(forest, responses, covariateData)
|
forest |
The forest to connect data too |
responses |
The responses in the data; aka the left hand side of the formula |
covariateData |
A data.frame containing all of the covariates used in the training dataset |
The same forest, but connected to the training data.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.