Description Usage Arguments Value Examples
Used to compute an arbitrary score method on arbitrary inputs.
1 | score(model, score_type, train_settings = trainControl(method = "none"))
|
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. |
Function that takes dataframes X (features, n x d) and Y (response, n x 1) that score will be computed on.
1 | rf_sens_func <- score('rf','sensitivity')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.