Contents:
Bases: Transform
Transform
Turn a categorical vector into a one-hot vector.
Methods Summary
__call__(sample)
__call__
Assumes that K classes are identified by the numbers 0:K-1.
Methods Documentation
sample (np.ndarray) – input shape is (time)
np.ndarray
output shape is (time, K)