snapshots_from_X
snapshots_from_X(X)
Split a time-augmented dataset into per-time snapshots.
Parameters:
-
X(array-like of shape (n_samples_total, ndim + 1)) –Input matrix with time stored in the last column.
Returns:
-
snaps(list of torch.Tensor, length n_unique_times) –snaps[k]has shape(n_k, ndim). -
times(torch.Tensor of shape (n_unique_times,)) –Sorted unique times found in
X.