PILArNetParquetDataset#
- class PILArNetParquetDataset(repo_id: str | None = 'DeepLearnPhysics/PILArNet-M-mini', data_root: str | None = None, split='train', transform=None, revision: Literal['v1', 'v2', 'v3'] = 'v2', parquet_revision: str = 'refs/convert/parquet', config_name: str = 'default', loop=1, ignore_index=-1, energy_threshold=0.0, min_points=1024, max_len=-1, remove_low_energy_scatters=False, old_pid_mapping=False, test_mode=False, test_cfg=None, overlay_n_events=1, overlay_prob=1.0, overlay_allow_repeats=True)[source]#
Bases:
PILArNetOverlayMixin,DatasetMap-style PILArNet reader backed by parquet (Arrow-mmap).
Reads the same flat
point/cluster/cluster_extralayout asPILArNetH5Datasetfrom parquet shards – either the HF auto-converted ref of a dataset repo (repo_id) or a local directory of parquet files (data_root) – and emits identicaldata_dictdictionaries via the shareddecode_event(). Intended for fine-tuning, evaluation, probes, and anywhere reproducible random access matters; for large-scale pretraining preferPILArNetParquetIterableDataset(sequential + shuffle buffer).The backing table is memory-mapped, so a local split is not resident in RAM. Event overlay is supported with the same
overlay_*kwargs as the H5 reader (both mix inPILArNetOverlayMixin), so a config can swap the two readers freely.test_modeis not supported here (use the H5 reader for the voxelized/augmented test path); passing it raises.- Parameters:
repo_id (str | None) – HF dataset repo whose auto-converted parquet ref is read when
data_rootisNone. Defaults to"DeepLearnPhysics/PILArNet-M-mini".data_root (str | None) – Local directory of parquet shards; takes precedence over
repo_idwhen set (and over the default via thePILARNET_PARQUET_ROOT_<REV>env var). Defaults toNone.split (str) – Split name;
"val"is accepted as an alias for"validation". Defaults to"train".transform (list[dict]) – Transform configs (NOT a prebuilt
Compose).revision ({"v1","v2","v3"}) – Cluster/extra column layout. Defaults to
"v2".parquet_revision (str) – Git ref carrying the parquet export. Defaults to
"refs/convert/parquet".config_name (str) – Parquet builder config subdir. Defaults to
"default".min_points (int) – Minimum points per event to keep. Defaults to
1024.
See
PILArNetH5Datasetfor the remaining shared arguments and the emitted dictionary schema.