target_set | R Documentation |
This function detects or forces the target value when predicting a categorical binary model. This is an auxiliary function.
target_set(tag, score, target = "auto", quiet = FALSE)
tag |
Vector. Real known label |
score |
Vector. Predicted value or model's result |
target |
Value. Which is your target positive value? If set to 'auto', the target with largest mean(score) will be selected. Change the value to overwrite. Only used when binary categorical model. |
quiet |
Boolean. Do not show message for auto target? |
List. Contains original data.frame df
and
which
with the target variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.