peal.generators.tabular_ddpm¶
Minimal DDPM for low-dimensional tabular data with guided counterfactuals.
PEAL’s image generators (DiffusionAutoencoder, PathLDM, Stable Diffusion) do
not apply to the toy tabular tasks (2-D “circle”-style datasets from
peal.data.tabular_datasets). This module provides an MLP score network
trained with the standard epsilon-prediction loss, plus an edit method in
the EditCapableGenerator protocol that produces counterfactuals by
classifier-guided reverse diffusion from a partially noised input. Training
writes diffusion.pt, config.yaml and TensorBoard scatter plots into
config.base_path.
Classes
Score network plus timestep embedding: the trainable part of the DDPM. |
|
Fixed sinusoidal timestep embeddings looked up by integer timestep. |
|
Four-layer MLP predicting the noise |
|
DDPM generator for tabular data with classifier-guided counterfactual edits. |
|
Config of |