API Reference#
Look through specific module or search through the entire list of APIs.
All APIs
Object |
Description |
|---|---|
PyTorch Dataset for loading time-slices of neural data recordings from HDF5 files. |
|
Index for accessing a specific time interval of a recording within a |
|
Dataset that composes multiple |
|
Mixin class for |
|
Mixin class for |
|
Mixin class for |
|
Wrap an object to specify that it (or any of its members) should be stacked |
|
Extension of PyTorch’s |
|
Wrap an object to specify that it (or any of its members) should be padded to |
|
Wrap an object to specify that it (or any of its members) should be padded to |
|
|
|
|
|
Wrap an array or tensor to track the batch_index. |
|
Wrap an array or tensor to specify that its padding mask should be tracked. |
|
Wrap an array or tensor to specify that its padding mask should be tracked. This |
|
Wrap an array or tensor to specify that its padding mask should be tracked. This |
|
Wrap an array or tensor to specify that its padding mask should be tracked. This |
|
Deprecated. Please use |
|
Samples fixed-length windows randomly, given intervals defined in the |
|
Samples fixed-length windows sequentially, always in the same order. The |
|
Randomly samples a single trial interval from the given intervals. |
|
Wraps a sampler to be used in a distributed evaluation setting. Unlike the standard |
|
A sampler designed specifically for evaluation that enables sliding window |
|
Compose several transforms together. All transforms will be called sequentially, |
|
Apply a single transformation randomly picked from a list. |
|
Conditionally apply a single transformation based on whether a condition is met. |
|
Augmentation that randomly drops units from the sample. By default, the number |
|
Triangular distribution with a peak at mode_units, going from min_units to |
|
<no summary> |
|
<no summary> |
|
<no summary> |
|
Bin spike events into fixed-width time bins. |
|
Drop units based on the mask_fn given in the constructor. |
|
Keep/drop units based on the keyword/regex given in the constructor. |
|
A simple extension of |
|
Embedding layer with a vocabulary that can be extended. Vocabulary is saved along |
|
Rotary time/positional embedding layer. This module is designed to be used with |
|
Sinusoidal time/position embedding layer. |
|
A feed-forward network with GEGLU activation. |
|
Cross-attention layer with rotary positional embeddings. |
|
Self-attention layer with rotary positional embeddings. |
|
A module that performs multi-task linear readouts from output embeddings. |
|
<no summary> |
|
Base class for losses. All losses should support an optional weights argument. |
|
Base class for losses. All losses should support an optional weights argument. |
|
Base class for losses. All losses should support an optional weights argument. |
|
Base class for losses. All losses should support an optional weights argument. |
|
<no summary> |
|
Enum defining the possible data types. |
|
Specification for a modality. |
|
Register a new modality specification in the global registry. |
|
Get a modality specification by its ID. |
|
|
dict() -> new empty dictionary |
Pools values that share the same timestamp using mean or mode operations. |
|
Sets random seed for reproducibility. |
|
Creates a sequence of latent tokens. Each token is defined by the |
|
Creates for each unit a start and end token. Each token is defined by the |
|
Determine weights for timestamps based on which intervals they fall within. |
|
Check if timestamps are in any of the intervals in the Interval object. |
|
<no summary> |
|
Adds a string prefix to each element of a numpy string array. |
|
Bins spikes into time bins of size bin_size. If the total time spanned by |