bt_generate_pr_metrics: Generates precision, and recall metrics for a given IR model....

View source: R/bt_generate_pr_metrics.R

bt_generate_pr_metricsR Documentation

Generates precision, and recall metrics for a given IR model. Takes in vectors of the model's predictions, the real label for the documents and an optional model name.

Description

Generates precision, and recall metrics for a given IR model. Takes in vectors of the model's predictions, the real label for the documents and an optional model name.

Usage

bt_generate_pr_metrics(model.prediction, real.label, model.name = "model")

Arguments

model.prediction

The prediction of your model, boolean.

real.label

The real label of the document, boolean.

model.name

The name of the model (optional)

Value

data.frame with the scores

References

www.globaltradealert.org


global-trade-alert/gtabastiat documentation built on June 4, 2023, 6:40 a.m.