aspire.flows.base#
Attributes#
Classes#
Base class for all flows. |
Module Contents#
- class aspire.flows.base.Flow(dims, device, data_transform=None)[source]#
Base class for all flows.
- Parameters:
dims (
int) – The number of dimensions.device (
Any) – The device to use for computations. Can be None for backends that do not handle devices explicitly.data_transform (
BaseTransform, optional) – A transform to apply to the data before fitting the flow. If None, the identity transform is used.
- config_dict()[source]#
Return a dictionary of the configuration of the flow.
This can be used to recreate the flow by passing the dictionary as keyword arguments to the constructor.
This is automatically populated with the arguments passed to the constructor.
- Returns:
config – The configuration dictionary.
- Return type:
dict