encode(snns) | R Documentation |
Encodes the vector @x
using one-in-n coding.
encode(x, code)
x |
vector of class labels |
code |
matrix with each row containing the code for one class |
Matrix replacing each element of @x
by the corresponding row of
@code
.
one.in.n