neuralset.base.Step

class neuralset.base.Step(*, infra: Backend | None = None)[source][source]

Base class for composable pipeline nodes.

A Step represents a single operation in a data processing pipeline, such as loading a study (Study) or transforming events (EventsTransform). Steps can be executed individually via .run() or grouped into a Chain.

Inherits caching and execution infrastructure from exca.steps.Step (configured via the infra parameter).

Parameters:

infra (dict or exca.Infra, optional) – A pydantic config defining caching and execution infrastructure. It supports options like caching to disk (e.g. using the Cached backend) and executing remotely on a cluster (e.g. via Slurm). For example: {"backend": "Cached", "folder": "~/.cache/neuralset"}.