bmrm (version 4.1)

balanced.loss.weights: Compute loss.weights so that total losses of each class is balanced

Description

Compute loss.weights so that total losses of each class is balanced

Usage

balanced.loss.weights(y)

Arguments

y

a object coerced to factor that represent the class labels of each sample of the dataset

Value

a numeric vector of the same length as y