getTestResults: Apply

Description Usage Arguments Value

Description

Apply

Usage

1
2
getTestResults(fit, data, formula, labelName, predictors = NULL,
  needToRemove = NULL, createModelMatrix = FALSE)

Arguments

fit

glmnet fitted model

data

testing data, which will under the same preprocessing as training, see prepLogitData

formula

char or formula object

labelName

char, column name of binary label

predictors

char, names of columns in data that should be in logit fit data

needToRemove

char, names of columns in data that should not be in logit fit data

createModelMatrix

logical, call model.matrix

Value

named list of test predictions, ROC and PR curve performances, and the original data


novasmedley/gbmSpm documentation built on May 17, 2019, 10:39 a.m.