Learn R Programming

casimir (version 0.3.3)

check_repair_relevance_pred: Check for inconsistent relevance values

Description

Internal helper function to check a data.frame with predicted labels for a valid relevance column.

Usage

check_repair_relevance_pred(
  predicted,
  ignore_inconsistencies = options::opt("ignore_inconsistencies")
)

Value

A valid predicted data.frame with possibly eliminated missing values.

Arguments

predicted

Multi-label prediction results. Expects a data.frame with columns "label_id", "doc_id", "relevance".

ignore_inconsistencies

Warnings about data inconsistencies will be silenced. (Defaults to FALSE, overwritable using option 'casimir.ignore_inconsistencies' or environment variable 'R_CASIMIR_IGNORE_INCONSISTENCIES')