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)
Vector. Real known label
Vector. Predicted value or model's result
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.
Boolean. Do not show message for auto target?
List. Contains original data.frame df
and
which
with the target variable.