mlnext.data#

Module for data loading and manipulation.

Functions

detemporalize

Transforms a 3 dimensional array (rows, timesteps, features) into a 2 dimensional array (new_rows, features).

load_data

Loads data from path.

load_data_3d

Loads data from path and temporalizes it with timesteps.

sample_bernoulli

Samples from a bernoulli distribution with mean.

sample_normal

Samples from a normal gaussian with mu=`mean` and sigma=`std`.

temporalize

Transforms a 2 dimensional array (rows, features) into a 3 dimensional array of shape (new_rows, timesteps, features).