test_dataset¶
A CuratedDataset for unit tests.
- class graphnet.datasets.test_dataset.TestDataset(download_dir, data_representation, graph_definition, truth, features, backend, train_dataloader_kwargs, validation_dataloader_kwargs, test_dataloader_kwargs)[source]¶
Bases:
ERDAHostedDataset
A CuratedDataset class for unit tests of ERDAHosted Datasets.
This dataset should not be used outside the context of unit tests.
Construct CuratedDataset.
- Parameters:
download_dir (
str
) – Directory to download dataset to.data_representation (
Optional
[DataRepresentation
], default:None
) – Method that defines the data representation.graph_definition (
Optional
[GraphDefinition
], default:None
) – Method that defines the graph representation. NOTE: DEPRECATED Use data_representation instead.truth (Optional) – List of event-level truth to include. Will include all available information if not given.
features (Optional) – List of input features from pulsemap to use. If not given, all available features will be used.
backend (Optional) – data backend to use. Either “parquet” or “sqlite”. Defaults to “parquet”.
train_dataloader_kwargs (Optional) – Arguments for the training DataLoader. Default None.
validation_dataloader_kwargs (Optional) – Arguments for the validation DataLoader, Default None.
test_dataloader_kwargs (Optional) – Arguments for the test DataLoader. Default None.