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


neurodata/lol documentation built on March 3, 2021, 1:46 a.m.