config.yaml                                                                                                               kalfa 0.2.5
  layers      config.yaml, /alias/kalfa/base, /alias/kalfa/vision
  params
    epochs     100       latent     128       seed       7
    lr         0.0001    n_classes  10
  seed        7
  device      cuda
  rng         derived (no rng key)
  record      runs/wgan_$datetime$

── DATA ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  source      image_folder  data/celeba64                 480 rows · 2 columns
  split       random  0.95 / 0.05 / 0  seed=7             train 456  ·  valid 24  ·  test 0
  batch       64                                          feed  table

  field  columns  preprocessors  role
  ──────────────────────────────────────
  image  image    to_signed      feature
  label  label    —              target

  data/celeba64 ─→ split random
    ├─ train      456  ─→ fit to_signed ─→ table
    ├─ valid       24  ─→ apply         ─→ table
    └─ test         0  ─→ apply         ─→ table

── MODEL ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  generator   trained  ·  optimizer g  ·  init weights=normal std=0.02  ·  ema decay 0.999
    inputs z, label   outputs image
    label  ─→  cond_embed(n_classes=10)          ─→  y
    z, y   ─→  concat dim=1                      ─→  zy
    zy     ─→  generator in_dim=192 channels=64  ─→  image

  critic   trained  ·  optimizer d  ·  init weights=normal std=0.02
    inputs image, label   outputs score
    label     ─→  cond_embed(n_classes=10)        ─→  y
    image, y  ─→  critic channels=64 cond_dim=64  ─→  score

  the parameter counts need --measure

── TRAINING ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  turn        alternating         100 epochs      predicts —
              order=[d, g] steps={d=5 g=1} fresh_batch=true

  optimizer  lego                           trains        loss    schedule
  ───────────────────────────────────────────────────────────────────────────
  d          adam lr=0.0001 betas=[0, 0.9]  ─→ critic     wgan_d  no schedule
  g          adam lr=0.0001 betas=[0, 0.9]  ─→ generator  wgan_g  no schedule

  loss    lego                                                                                  reported on
  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  wgan_d  wgan_gp_d generator=generator critic=critic latent=128 gp_weight=10 conditional=true  train               active at turn 1
  wgan_g  wgan_g generator=generator critic=critic latent=128 conditional=true                  train, valid, test  active at turn 1

  metric   lego                                                                                                      reported on
  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  fid      fid model=generator.ema latent=128 conditional=true n=2000                                                valid  every 5
  samples  sample_writer sampler=gan_sampler model=generator.ema latent=128 conditional=true n_classes=10 n=64 n=16  valid  every 5

  checkpoint  best monitor=val/fid                        report best

── AFTER ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  report      best        predict — ─→ predictions.parquet
  plots       loss_curve, samples_gif, samples_matrix  ─→ plots/
  generate    gan_sampler model=generator.ema latent=128 conditional=true n_classes=10 n=64  ─→ samples/
  record      runs/wgan_$datetime$

── COLUMNS ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  column  dtype  field  preprocessors  role     tensor
  ────────────────────────────────────────────────────
  image   image  image  to_signed      feature  x
  label   int64  label  —              target   label
  the produced widths and the tensor slots need --measure
