Description Usage Arguments Value See Also Examples
Returns the Fbeta [(1 + beta^2) * (precision * recall) / ((beta^2 *precision) + recall)] of a classification using the confusion matrix Note: Predictions should be annualized (independent of exposure) Note: Perfect Fbeta is 1, poor model is 0
1 2 3 4 5 6 7 8 | metric_Fbeta(
actual,
predicted,
weight = NULL,
na.rm = FALSE,
threshold = 0.5,
beta = 1
)
|
actual |
Array[Numeric] - Values we are aiming to predict. |
predicted |
Array[Numeric] - Values that we have predicted. |
weight |
Optional: Array[Numeric] - Weighting of predictions. If NULL even weighting is used |
na.rm |
Optional: boolean - If |
threshold |
Optional: Numeric between 0 and 1. If prediction proablity is below |
beta |
Numeric |
precision of classification TP / (TP + FN)
metric_precision
, metric_recall
and metric_confusion_matrix
1 2 | metric_Fbeta(actual=c(0,1,0,0), predicted=c(0.1,0.9,0.4,0.6))
metric_Fbeta(actual=c(0,1,0,0), predicted=c(0.1,0.9,0.4,0.6), threshold=0.7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.