liveBook · Manning

Self-defined dataset format

As explained in Designing Deep Learning Systems: A guide for software engineers

A dataset representation defined independently of any particular model-training framework.

A self-defined dataset format separates dataset management from model-training frameworks. It provides an intermediate representation so training code does not have to depend on PyTorch or TensorFlow dataset formats. section 2.2.6

A dataset can use two strongly typed schemas:

  • Ingestion schema: accepts a CSV whose first column contains text utterances and remaining columns contain labels. section 2.2.6
  • Training schema: produces a ZIP containing examples.csv for utterance-to-label-ID mappings and labels.csv for label-name mappings. section 2.2.6
  • A data-management service transforms ingestion data into training data, allowing collection and training development to proceed independently. section 2.2.6

TEXT_INTENT representation

An utterance such as “I couldn’t purchase gas in Costco” can map to label ID 2 in examples.csv, while labels.csv maps 2 to card_not_working. section 2.2.6

Figure 2.15 Each type of dataset has two data schemas: ingestion data schema and training data schema. These two schemas will ensure that the data we accept and the data we produce follow our data spec.

Shows how ingestion and training schemas define the accepted and produced data specifications. section 2.2.6

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Defines two schemas, concrete CSV structures, and their transformation for independent ingestion and training work.
Examples
Uses TEXT_INTENT CSV input, examples.csv, labels.csv, utterances, and label IDs.
What it assumes
Assumes familiarity with datasets, schemas, CSV files, labels, and model-training frameworks.
What you can do after
Build it from scratch by defining ingestion and training schemas that support framework-independent training pipelines.
How it connects
Connects data schemas, data transformation, dataset management, and model-training frameworks.

This explainer was generated by Manning's knowledge graph from the text of Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.