LL: LL: Log-likelihood function

Description Usage Arguments Value Examples

View source: R/evalm.R

Description

Calculates the Log-likelihood to evaluate probabilities. A data frame of probabilities and ground truth labels must be passed in to evaluate. Raw probability data must be column1: prob G1, column2: prob G2, column3: obs labels, column4: Group (optional). Zero is optimal and more negative is less.

Usage

1
LL(preds, positive = colnames(preds)[2])

Arguments

preds

Data frame: Data frame of probabilities and ground truth labels.

positive

Character vector: The name of the positive group, must equal a column name consisting of probabilities.

Value

Log-likelihood

Examples

1
r1 <- LL(preds)

MLeval documentation built on Feb. 12, 2020, 9:07 a.m.