Compose

class behavenet.data.transforms.Compose(transforms)[source]

Bases: object

Composes several transforms together.

Adapted from pytorch source code: https://pytorch.org/docs/stable/_modules/torchvision/transforms/transforms.html#Compose

Example

>> Compose([
>>     behavenet.data.transforms.SelectIdxs(idxs),
>>     behavenet.data.transforms.Threshold(threshold=1.0, bin_size=25),
>> ])
Parameters:

transforms (list of transform) – list of transforms to compose

Methods Summary

__call__(signal)

Call self as a function.

Methods Documentation

__call__(signal)[source]

Call self as a function.