Learn R Programming

mlearning (version 1.2.1)

train: 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, ...)

# S3 method for default train(object, ...)

Value

A data frame containing the training variables of the model.

Arguments

object

an object having a train attribute.

...

further parameter (depends on the method).

See Also

mlearning(), response(), confusion()

Examples

Run this code
data("HouseVotes84", package = "mlbench")
house_rf <- ml_rforest(data = HouseVotes84, Class ~ .)
house_rf
train(house_rf)

Run the code above in your browser using DataLab