score: Used to compute an arbitrary score method on arbitrary...

Description Usage Arguments Value Examples

Description

Used to compute an arbitrary score method on arbitrary inputs.

Usage

1
score(model, score_type, train_settings = trainControl(method = "none"))

Arguments

model

(char): Model type that can be passed into caret's 'train()' function.

score_type

(char): String specifying score method to be used. Should be one of (mse, accuracy, r2, adj_r2, auc, ...).

train_settings

(list): default=trainControl(method='none'). trainControl object containing any desired settings for caret's train() function.

Value

Function that takes dataframes X (features, n x d) and Y (response, n x 1) that score will be computed on.

Examples

1
rf_sens_func <- score('rf','sensitivity')

UBC-MDS/ezmodelR documentation built on May 25, 2019, 1:35 p.m.