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 (p.ndarray) – input shape is (time)
output shape is (time, K)
np.ndarray