classification: classification

Description Usage Arguments Details Author(s) Examples

Description

This function performs the training of the chosen classifier

Usage

1
2
3
4
classification(df.train, formula = NULL, preprocess = NULL,
  classifier = "rf", nfolds = 10, repeats = 1, index = NULL,
  cpu_cores = 4, tune_length = 5, metric = "Kappa", seeds = NULL,
  verbose = FALSE)

Arguments

df.train

Training dataframe

formula

A formula of the form y ~ x1 + x2 + ... If users don't inform formula, the first column will be used as Y values and the others columns with x1,x2....xn

preprocess

pre process

classifier

Choice of classifier to be used to train model. Uses algortims names from Caret package.

nfolds

Number of folds to be build in crossvalidation

repeats

repeats

index

index

cpu_cores

Number of CPU cores to be used in parallel processing

tune_length

This argument is the number of levels for each tuning parameters that should be generated by train

metric

metric used to evaluate model fit. For numeric outcome ("RMSE", "Rsquared)

seeds

seeds seeds

verbose

verbose

Details

details

Author(s)

Elpidio Filho, elpidio@ufv.br

Examples

1
2
3
4
## Not run: 
kappa_cv_evaluation(train,"rf",10,6)

## End(Not run)

elpidiofilho/easyFit documentation built on May 28, 2019, 8:36 p.m.