Learn R Programming

MetricsWeighted (version 0.1.0)

recall: Recall

Description

Weighted recall.

Usage

recall(actual, predicted, w = NULL, ...)

Arguments

actual

Observed values (0 or 1).

predicted

Predicted values (0 or 1).

w

Optional case weights.

...

Further arguments passed to weighted_mean.

Value

A numeric vector of length one.

See Also

precision, f1_score.

Examples

Run this code
# NOT RUN {
recall(c(0, 0, 1, 1), c(0, 0, 1, 1))
recall(c(1, 0, 0, 1), c(0, 0, 1, 1))
recall(c(1, 0, 0, 1), c(0, 0, 1, 1), w = 1:4)

# }

Run the code above in your browser using DataLab