encode(snns)R Documentation

general encoding for classification

Description

Encodes the vector @x using one-in-n coding.

Usage

encode(x, code)

Arguments

x vector of class labels
code matrix with each row containing the code for one class

Value

Matrix replacing each element of @x by the corresponding row of @code.

See Also

one.in.n


[Package Contents]