npdl.utilsΒΆ

Data Utils

one_hot One-hot encoding is often used for indicating the state of a state machine.
unhot Get argmax indexes.

Random Utils

get_rng Get the package-level random number generator.
set_rng Set the package-level random number generator.
set_seed Set numpy seed.
get_dtype Get data dtype numpy.dtype.
set_dtype Set numpy dtype.