VinOfflineIndexRecord
data_handling.VinOfflineIndexRecord(
sample_index,
sample_key,
scene_id,
snippet_id,
split,
shard_id,
row,
)
Global sample-index entry for VIN offline random access.
Attributes
| sample_index |
int |
Global zero-based sample index. |
| sample_key |
str |
Stable dataset sample key. |
| scene_id |
str |
ASE scene identifier. |
| snippet_id |
str |
ASE snippet identifier. |
| split |
str |
Canonical split membership: all, train, or val. |
| shard_id |
str |
Shard that stores the sample. |
| row |
int |
Zero-based row offset inside the shard. |
Methods
read_many
data_handling.VinOfflineIndexRecord.read_many(path)
Read the global sample index.
Parameters
| path |
Path |
sample_index.jsonl path. |
required |
Returns
|
list[Self] |
Parsed sample-index records. |
write_many
data_handling.VinOfflineIndexRecord.write_many(path, records)
Write the global sample index.
Parameters
| path |
Path |
Destination sample_index.jsonl path. |
required |
| records |
list[Self] |
Global sample-index records to persist. |
required |