deprecated_trainModelffs: Train machine learning model using forward feature selection

Description Usage Arguments Details Value Note References See Also Examples

View source: R/deprecated_trainModelffs.R

Description

A simple forward feature selection algorithm.

Usage

1
2
deprecated_trainModelffs(resp, indp, n_var, mthd, seed_nbr, cv_nbr, metric,
  withinSD = TRUE, runParallel = TRUE)

Arguments

metric

see train

withinSD

Logical Models are only selected if they are better than the currently best models SD

runParallel

Logical

predictors

see train

response

see train

method

see train

maximize

see train

trControl

see train

tuneLength

see train

tuneGrid

see train

seed

A random number

...

arguments passed to the classification or regression routine (such as randomForest). Errors will occur if values for tuning parameters are passed here.

Details

Models with two predictors are first trained using all possible pairs of predictor variables. The best model of these initial models is kept. On the basis of this best model the predictor variables are iteratively increased and each of the remaining variables is tested for its improvement of the currently best model. The process stops if none of the remaining variables increases the model performance when added to the current best model.

The internal cross validation can be run in parallel. See information on parallel processing of carets train functions for details.

Using withinSE will favour models with less variables and probably shorten the calculation time

Value

A list of class train

Note

This validation is particulary suitable for leave-one-station-out cross validations where variable selection MUST be based on the performance of the model on the hold out station. A computational time expesnsive alternative is the best subset selection (bss).#'

References

NONE

See Also

NONE

Examples

1
# Not run

environmentalinformatics-marburg/gpm documentation built on July 11, 2020, 11:12 a.m.