Shortcuts

SplitDataset

class flash.core.data.splits.SplitDataset(dataset, indices=None, use_duplicated_indices=False)[source]

SplitDataset is used to create Dataset Subset using indices.

Parameters
  • dataset (Any) – A dataset to be splitted

  • indices (Optional[List[int]]) – List of indices to expose from the dataset

  • use_duplicated_indices (bool) – Whether to allow duplicated indices.

Example:

split_ds = SplitDataset(dataset, indices=[10, 14, 25])

split_ds = SplitDataset(dataset, indices=[10, 10, 10, 14, 25], use_duplicated_indices=True)
Read the Docs v: 0.7.1
Versions
latest
stable
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
docs-fix_typing
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.