Learn R Programming

crtests (version 0.2.1)

train_model: Train a classification or regression model

Description

Generic function for training a model.

Usage

train_model(test, data, ...)
"train_model"(test, data, ...)
"train_model"(test, data, ...)

Arguments

test
The test object. This is passed so the method can be extracted.
data
An object of class "regression" or "classification" with at least x, y, train and holdout
...
Extra arguments to pass to the classification or regression method

Methods (by class)

  • classification: Train a model for classification using a classifier algorithm. This function wraps the actual classifier
  • regression: Train (fit) a regression model. This function wraps a regression algorithm.