config.yaml                                                                          kalfa 0.2.5
  layers      config.yaml, /alias/kalfa/base, /alias/kalfa/tabular
  params
    epochs  100
    lr      0.001
    seed    7
    fold    0
  seed        7
  device      cpu (no device key)
  rng         derived (no rng key)
  record      runs/cv_housing_0

── DATA ────────────────────────────────────────────────────────────────────────────────────────
  source      parquet  housing.parquet                    2 000 rows · 9 columns
  split       kfold  k=5 fold=0 val=0.15 seed=7           train 1 360  ·  valid 240  ·  test 400
  batch       128                                         feed  table

  field  columns       preprocessors  role
  ───────────────────────────────────────────
  x*     x0 … x7  (8)  std_scaler     feature
  price  price         target_std     target

  housing.parquet ─→ split kfold
    ├─ train    1 360  ─→ fit std_scaler, target_std ─→ table
    ├─ valid      240  ─→ apply                      ─→ table
    └─ test       400  ─→ apply                      ─→ table

── MODEL ───────────────────────────────────────────────────────────────────────────────────────
  model   trained  ·  optimizer model
    x ─→ linear_relu 128 ─→ linear_relu 128 ─→ linear 1 ─→ y

  the parameter counts need --measure

── TRAINING ────────────────────────────────────────────────────────────────────────────────────
  turn        alternating         100 epochs      predicts model

  optimizer  lego           trains    loss      schedule
  ─────────────────────────────────────────────────────────
  model      adam lr=0.001  ─→ model  loss_mse  no schedule

  loss          lego           reported on
  ───────────────────────────────────────────────────────────────────
  loss_mse      mse            train, valid, test  active at turn 1
  loss_huber    huber delta=1  train, valid, test  held for the rules
  loss_mae      mae            train, valid, test  held for the rules
  loss_logcosh  log_cosh       train, valid, test  held for the rules

  metric  lego  reported on
  ──────────────────────────────────
  rmse    rmse  train, valid, test
  mae     mae   train, valid, test

  checkpoint  best monitor=val/rmse                       report best
  stop        val/rmse plateau 6

  rules (evaluated at the end of a turn, effective in the next)
    turn ≥ 50                ─→  to_huber    loss := loss_huber
    train/loss_huber < 0.01  ─→  to_mae      loss := loss_mae      after to_huber
    val/loss_mae plateau 5   ─→  to_logcosh  loss := loss_logcosh  after to_mae

── AFTER ───────────────────────────────────────────────────────────────────────────────────────
  report      best        predict model ─→ predictions.parquet
  plots       loss_curve, pred_vs_true, data_pipeline  ─→ plots/
  record      runs/cv_housing_0

── COLUMNS ─────────────────────────────────────────────────────────────────────────────────────
  column  dtype   field  preprocessors  role     tensor
  ─────────────────────────────────────────────────────
  x0      double  x*     std_scaler     feature  x
  x1      double  x*     std_scaler     feature  x
  x2      double  x*     std_scaler     feature  x
  x3      double  x*     std_scaler     feature  x
  x4      double  x*     std_scaler     feature  x
  x5      double  x*     std_scaler     feature  x
  x6      double  x*     std_scaler     feature  x
  x7      double  x*     std_scaler     feature  x
  price   double  price  target_std     target   price
  the produced widths and the tensor slots need --measure
