calcLoss: Calculate the loss of a classifier using discrete loss matrix

Description Usage Arguments

Description

Calculates the loss of a classifer using a discrete loss matrix, where each observation may be weighted as desired.

Usage

1
2
calcLoss(truthLabels, predLabels, lossMat, weight = rep(1,
  length(truthLabels)), aggregate = TRUE)

Arguments

truthLabels

A factor vector containing the true classes for each instance (or observation)

predClass

A factor vector containing the predicted classes for each instance (or observation)

lossMat

A object of class lossMat (constructed using


PNNL-Comp-Mass-Spec/glmnetGLR documentation built on May 28, 2019, 2:23 p.m.