summarise_intermediate_results_dplyr.RdCompute the mean of intermediate results created by
compute_intermediate_results. Variant with dplyr based internals
rather than collapse internals.
summarise_intermediate_results_dplyr(
intermediate_results,
propensity_scored = FALSE,
label_distribution = NULL
)As produced by
compute_intermediate_results. This requires a list containing:
results_table A data.frame with columns "prec",
"rprec", "rec", "f1".
grouping_var A character vector of variables to group by.
Logical, whether to use propensity scores as weights.
Expects a data.frame with columns "label_id",
"label_freq", "n_docs". label_freq corresponds to the number of
occurences a label has in the gold standard. n_docs corresponds to
the total number of documents in the gold standard.
A data.frame with columns "metric", "value".