Description Usage Arguments Value
View source: R/useful_functions.R
Generates an AMS function with threshold ('theta') of a logistic regression model as input. Useful for tuning threshold as a second stage to fitting logistic regression model.
1 | AMS(f, valid_set, valid_y, valid_weights)
|
f |
Weighted logistic regression model (output of caret::train). |
valid_set |
Validation data set for model 'f'. |
valid_y |
Binary labels of validation data (0/1). |
valid_weights |
Weights of validation data. |
Function with one input 'theta', that returns AMS of validation set using model 'f' with threshold 'theta'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.