PredictParams | R Documentation |
Collects the function to be used for making predictions and any associated parameters.
The function specified must return either a factor vector of class predictions, or a numeric vector of scores for the second class, according to the levels of the class vector of the input data set, or a data frame which has two columns named class and score.
PredictParams(predictor, characteristics = DataFrame(), intermediate = character(0), ...)
Creates a PredictParams object which stores the function
which will do the class prediction, if required, and parameters that the
function will use. If the training function also makes predictions, this
must be set to NULL
.
predictor
A character keyword referring to a registered classifier. See available
for valid keywords.
characteristics
A DataFrame
describing
the characteristics of the predictor function used. First column must be
named "charateristic"
and second column must be named "value"
.
intermediate
Character vector. Names of any
variables created in prior stages in runTest
that need to be
passed to the prediction function.
...
Other arguments that predictor
may use.
predictParams
is a PredictParams
object.show(predictParams)
: Prints a short summary of what predictParams
contains.
Dario Strbenac
# For prediction by trained object created by DLDA training function.
predictParams <- PredictParams("DLDA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.