lol.utils.ohe: A function for one-hot encoding categorical respose vectors.

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

A function for one-hot encoding categorical respose vectors.

Usage

1

Arguments

Y

[n] a vector of the categorical resposes, with K unique categories.

Value

a list containing the following:

Yh

[n, K] the one-hot encoded Y respose variable.

ylabs

[K] a vector of the y names corresponding to each response column.

Author(s)

Eric Bridgeford


lolR documentation built on July 8, 2020, 7:35 p.m.