as_MLP_Y: Outcomes (Y) data format for SLP/MLP

View source: R/deepMLP.r

as_MLP_YR Documentation

Outcomes (Y) data format for SLP/MLP

Description

Outcomes (Y) data format for SLP/MLP

Usage

as_MLP_Y(y, encoding = c("one_hot", "sparse"))

Arguments

y

An outcome data set, usually a vector, matrix or data frame.

encoding

The type of encoding: one-hot encoding or sparse encoding.

Value

A two-dimensional array of the outcome y. For a factor outcome, the result is an encoded matrix.

See Also

as_MLP_X, one_hot_encode, sparse_encode.

Other Single & Multi Layer Perceptron (SLP, MLP): as_MLP_X(), as_tensor_1d(), as_tensor_2d(), as_tensor_3d(), build_MLP(), fit_MLP(), load_weights_ANN(), nsamples(), nsubsequences(), ntimesteps(), nunits(), predict_ANN(), save_weights_ANN()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.