Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Example 05: Input Data Building Model

This is the most important example. It shows how to turn raw state into useful state through explicit, inspectable transforms.

Raw Input Data
  ↓
Normalize
  ↓
Data State 1  (CleanData)
  ↓
Extract / Pick
  ↓
Data State 2  (ExtractedData)
  ↓
Structure
  ↓
Built Data
  ↓
Evaluate
  ↓
Feedback

Formula:

D0 = raw input data
D1 = normalize(D0)
D2 = extract(D1)
D3 = structure(D2)

BuiltData  = D3
Evaluation = E(D3)

Input Data Building is the process of turning raw state into useful state through explicit, inspectable transforms.

Input

{ "text": "  Composable Model Graph builds explicit transformations  " }

Output

{
  "words": [
    "composable",
    "model",
    "graph",
    "builds",
    "explicit",
    "transformations"
  ],
  "count": 6
}

The evaluator passes when count > 0.

Run

pnpm build
pnpm --filter @composable-model-graph/example-05-input-data-building start