train {mlearning} | R Documentation |
Get the training variable for a mlearning object
Description
The training variables (train) are the variables used to train a classifier, excepted the prediction (class or dependent variable).
Usage
train(object, ...)
## Default S3 method:
train(object, ...)
Arguments
object |
an object having a train attribute. |
... |
further parameter (depends on the method). |
Value
A data frame containing the training variables of the model.
See Also
mlearning()
, response()
, confusion()
Examples
data("HouseVotes84", package = "mlbench")
house_rf <- ml_rforest(data = HouseVotes84, Class ~ .)
house_rf
train(house_rf)
[Package mlearning version 1.2.1 Index]