timeatlas.time_series_dataset.TimeSeriesDataset.select_components_by_percentage

TimeSeriesDataset.select_components_by_percentage(percent: float, seed: int = None, indices: bool = False) → Any

Returns a subset of the TimeSeriesDataset with randomly chosen percentage elements without replacement.

Parameters
  • percent – percentage of elements returned

  • seed – seed for random generator

  • indices – if True returns the indices of the selection

Returns: TimeSeriesDataset (optional: indices of selection)