pydpf.datautils.StateSpaceSubset#
- class pydpf.datautils.StateSpaceSubset(datadict, parent: StateSpaceDataset)#
Bases:
StateSpaceDataset- __init__(datadict, parent: StateSpaceDataset)#
Methods
__init__(datadict, parent)apply(f[, modified_series])Apply a function across all trajectories
collate(batch)Pass to the
collate_fnparameter of anytorch.utils.data.DataLoaderobject that uses this dataset.deterministic_split(ratios)normalise_dims([normalised_series, ...])Normalise the data to have mean zero and standard deviation one.
random_split(ratios, generator)save(path[, series_metadata_path, ...])Save a dataset to a file or folder
select(indices)Attributes
controlThe dataset control as a tensor
control_dimensionThe dimension of the control actions
observationThe dataset observation as a tensor
observation_dimensionThe dimension of each observation
series_metadataThe dataset series_metadata as a tensor
stateThe dataset state as a tensor
state_dimensionThe dimension of the state
timeThe dataset time as a tensor