Threshold

class behavenet.data.transforms.Threshold(threshold, bin_size)[source]

Bases: Transform

Remove channels of neural activity whose mean value is below a threshold.

Methods Summary

__call__(sample)

Calculates firing rate over all time points and thresholds.

Methods Documentation

__call__(sample)[source]

Calculates firing rate over all time points and thresholds.

Parameters:

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

Returns:

output shape is (time, n_channels)

Return type:

np.ndarray