one_hot_encoding: One Hot Encoding

Description Usage Arguments Value

View source: R/nn-mnist.R

Description

Creates a one hot encoding matrix with the specified number of categories for the targets. Target must be the first column of the data_raw input.

Usage

1
one_hot_encoding(data_raw, ncat = 10)

Arguments

data_raw

data input to create encoding; target must be first column

ncat

number of categories to use for the encoding

Value

targets in a one hot encoding matrix


simpleMLP documentation built on March 28, 2021, 9:07 a.m.