best_lines_match: Percentage of best lines present in the predictions

View source: R/metrics.R

best_lines_matchR Documentation

Percentage of best lines present in the predictions

Description

Computes the percentage of best lines present in the predictions. The lines with the highest observed values are considered as the best lines, and then, the lines with the highest predicted values are compared to compute the percentage of matching.

Usage

best_lines_match(predictions, percentage = 10)

Arguments

predictions

(data.frame) The predictions to evaluate. It must have the columns Line, Observed and Predicted.

percentage

(numeric) The percentage of best lines to consider. 10 by default.

Value

A single numeric value with the percentage of best lines present in the predictions.

See Also

Other rank_metrics: ndcg()


brandon-mosqueda/SKM documentation built on Feb. 8, 2025, 5:24 p.m.