Learn R Programming

nestedcv (version 0.9.0)

weight: Calculate weights for class imbalance

Description

Calculate weights for class imbalance

Usage

weight(y)

Value

Vector of weights

Arguments

y

Factor or character response vector. If a character vector is supplied it is coerced into a factor. Unused levels are dropped.