train_model: Train a classification or regression model

Description Usage Arguments Methods (by class)

Description

Generic function for training a model.

Usage

1
2
3
4
5
6
7
train_model(test, data, ...)

## S3 method for class 'classification'
train_model(test, data, ...)

## S3 method for class 'regression'
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.



Search within the crtests package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.