train: Get the training variable for a mlearning object

View source: R/train.R

trainR 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)

mlearning documentation built on Aug. 31, 2023, 1:09 a.m.