vak.prep.frame_classification.make_splits.Sample#
- class vak.prep.frame_classification.make_splits.Sample(source_id: int, source_path: str, frame_labels_npy_path: str, sample_id_vec: ndarray, inds_in_sample_vec: ndarray)[source]#
Bases:
object
Dataclass representing one sample in a frame classification dataset.
Used to add paths for arrays from the sample to a
dataset_df
, and to build thesample_ids
vector andinds_in_sample
vector for the entire dataset.- frames_path#
The path to the input to the model \(x\) after it has been moved, copied, or created from a
source_path
. Path will be written relative todataset_path
. We preserve the original paths as metadata, and consider the files in the split to contain frames, regardless of the source domain of the data.- Type:
- sample_id_vec#
Sample ID vector for this sample.
- Type:
- inds_in_sample_vec#
Indices within sample.
- Type:
- __init__(source_id: int, source_path: str, frame_labels_npy_path: str, sample_id_vec: ndarray, inds_in_sample_vec: ndarray) None #
Method generated by attrs for class Sample.
Methods
__init__
(source_id, source_path, ...)Method generated by attrs for class Sample.
Attributes