Skip to main content

Module sample

Module sample 

Source
Expand description

The Sample type: one training example, assembled from the files in a tar archive that share a basename.

Structs§

Sample
One training example: an insertion-ordered map from file extension to value.

Constants§

BAD
A truthy value in this field marks the sample as unusable.
KEY
The field holding the sample’s basename within its shard.
LOCAL_PATH
The field holding the local path of the shard, when it was read from disk.
META_PREFIX
The prefix and suffix that mark a field as metadata rather than data.
META_SUFFIX
See META_PREFIX.
URL
The field holding the URL of the shard the sample came from.

Functions§

is_meta
Whether a field name denotes metadata (__key__, __url__, …).