liveBook · Manning

Dataset artifact type

As explained in Machine Learning Platform Engineering

A dataset artifact type is a KFP artifact type representing machine-learning datasets and their associated metadata.

A Dataset artifact type represents machine-learning datasets and carries them between KFP pipeline components with metadata describing their characteristics and transformations. Use it for raw inputs, processed data, features, splits, and other structured sample collections. section 7.2.3

Typical pipeline data represented as Dataset artifacts includes:

@dsl.component
def prepare_dataset(raw_data: Input[Dataset], 
                   processed: Output[Dataset]):
    df = pd.read_csv(raw_data.path)
    df_processed = process_data(df)
    df_processed.to_csv(processed.path, index=False)
    processed.metadata.update({
        'num_samples': len(df_processed),
        'columns': list(df_processed.columns),
        'preprocessing_date': datetime.now().isoformat()
    })

A component consumes a raw Dataset through Input[Dataset], writes processed data through Output[Dataset], and records sample counts, columns, and preprocessing time in metadata. section 7.2.3

Validation pipeline integration

A YOLO validation component accepts a validation Dataset alongside a trained Model, runs model.val(), and emits evaluation Metrics such as mAP values. The Dataset artifact therefore forms the data dependency between preparation, training, and validation. section 8.1.4

How Machine Learning Platform Engineering covers it

How deep it goes
Demonstrates typed inputs and outputs, file access, metadata updates, and pipeline dependencies without detailing artifact-storage internals.
Examples
Uses processed CSV data, feature sets, train-validation splits, and YOLO validation datasets.
What it assumes
Assumes familiarity with KFP components, typed artifact inputs and outputs, dataset files, and basic model validation workflows.
What you can do after
Apply it via KFP component annotations to pass, process, and validate datasets while recording operational metadata.
How it connects
Connects data preparation, model training, model validation, Model artifacts, and Metrics artifacts.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.