MotionEnergy

class behavenet.data.transforms.MotionEnergy[source]

Bases: behavenet.data.transforms.Transform

Compute motion energy across batch dimension.

Methods Summary

__call__(sample)

param sample

input shape is (time, n_channels)

Methods Documentation

__call__(sample)[source]
Parameters

sample (np.ndarray) – input shape is (time, n_channels)

Returns

output shape is (time, n_channels)

Return type

np.ndarray