Learn R Programming

cvwrapr (version 1.0)

getTypeMeasureName: Get full name of loss function

Description

Get the full name of the loss function from `type.measure` and `family`.

Usage

getTypeMeasureName(type.measure, family)

Arguments

type.measure

Loss function to use for cross-validation.

family

Model family.

Value

A named vector of length 1. The vector's value is the full name of the loss function, while the name of that element is the short name of the loss function.