1 VinOfflineStoreConfig
data_handling.VinOfflineStoreConfig()Filesystem configuration for one immutable VIN offline dataset.
1.1 Attributes
| Name | Description |
|---|---|
| paths | Project path resolver. |
| store_dir | Root directory containing the immutable VIN offline dataset. |
| manifest_filename | Filename of the top-level manifest. |
| sample_index_filename | Filename of the global sample index. |
| shards_dirname | Directory containing immutable shard subdirectories. |
| splits_dirname | Directory containing split membership arrays. |
| manifest_path | Return the absolute manifest path. |
| sample_index_path | Return the absolute sample-index path. |
| shards_dir | Return the absolute shard root directory. |
| splits_dir | Return the absolute split-array directory. |
1.2 Methods
| Name | Description |
|---|---|
| split_path | Return the split-array path for one split. |
| write_split_indices | Persist split membership arrays. |
| read_split_indices | Load the global sample indices for one split. |
1.2.1 split_path
data_handling.VinOfflineStoreConfig.split_path(split)Return the split-array path for one split.
1.2.1.1 Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| split | str | Split name such as "all", "train", or "val". |
required |
1.2.1.2 Returns
| Name | Type | Description |
|---|---|---|
| Path | Absolute split-array path. |
1.2.2 write_split_indices
data_handling.VinOfflineStoreConfig.write_split_indices(split_to_indices)Persist split membership arrays.
1.2.2.1 Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| split_to_indices | dict[str, np.ndarray] | Split membership arrays keyed by split name. | required |
1.2.3 read_split_indices
data_handling.VinOfflineStoreConfig.read_split_indices(split)Load the global sample indices for one split.
1.2.3.1 Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| split | str | Split name such as "all", "train", or "val". |
required |
1.2.3.2 Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | Global sample indices for the requested split. |