class documentation
class DatasetRecord(BaseModelExtraForbid):
Dataset record containing file paths and an optional annotation.
| Class Method | validate |
Undocumented |
| Class Method | validate |
Undocumented |
| Static Method | decode |
Undocumented |
| Method | to |
Recursively convert the dataset record and all its annotations and sub-annotations to parquet rows. |
| Method | validate |
Undocumented |
| Class Variable | sample |
Undocumented |
| Instance Variable | annotation |
Optional detection associated with the dataset record. |
| Instance Variable | files |
File paths keyed by source name. |
| Instance Variable | task |
The name of the task to which the record belongs. |
| Property | all |
All file paths associated with the dataset record. |
| Property | file |
The file path of the dataset record. |
| Method | _to |
Undocumented |
@model_validator( mode='before')
@classmethod
def validate_files(cls, values: @classmethod
dict[ str, Any]) -> dict[ str, Any]:
¶
Undocumented
@model_validator( mode='before')
@classmethod
def validate_task_name(cls, values: @classmethod
dict[ str, Any]) -> dict[ str, Any]:
¶
Undocumented
Recursively convert the dataset record and all its annotations and sub-annotations to parquet rows.
| Yields | |
| Annotation data rows. |
@property
@deprecated( 'Use `list(record.files.values())` instead.')
all_file_paths: @deprecated(
list[ FilePath] =
¶
All file paths associated with the dataset record.
Deprecated since version 0.9.0: Use list(record.files.values()) instead.