onehot_encode: One-hot-encoding of the labels in case of classification

Description Usage Arguments Examples

Description

One-hot-encoding of the labels in case of classification

Usage

1

Arguments

y

a numeric vector consisting of the response variable labels. The minimum value of the unique labels should begin from 0

Examples

1
2
3
4
5
library(elmNNRcpp)

y = sample(0:3, 100, replace = TRUE)

y_expand = onehot_encode(y)

mlampros/elmNNRcpp documentation built on May 3, 2019, 10:43 p.m.