runFold: Utility function to create predictions for a given fold and...

Description Usage Arguments Value

View source: R/crossValidation.R

Description

Utility function to create predictions for a given fold and set of variables

Usage

1
2
3
runFold(trainingData, trainingTargets, testData, models, tuneKFolds,
  tuneRepeats, tuneLength, keep, PCA, verbose, heatmap, extraTrainingData,
  extraTestData)

Arguments

trainingData

A data frame of training data

trainingTargets

A logical vector of training class labels

testData

A data frame of test data

models

A vector of caret::train models

tuneKFolds

number of folds for parameter tuning

tuneRepeats

number of repeats for parameter tuning

tuneLength

number of parameters to try when tuning

keep

numeric vector of column indices to keep in training and test data

PCA

apply PCA?

verbose

verbose output?

heatmap

plot a heatmap before training models?

extraTrainingData

additional training data

extraTestData

additional test data

Value

predictions for this fold


mattdneal/FAIMSToolkit documentation built on May 21, 2019, 12:57 p.m.