Train a tiny DDPM on a collection of soil-map patches
Arguments
- stack
A 3-D array of shape
(n_patches, H, W)of soil- property patches (e.g. SOC at each pixel, already standardised to zero mean / unit variance).- conditioning
Optional matrix of shape
(n_patches, cond_dim)giving a per-patch covariate summary fed to the denoising network as conditioning. DefaultNULL.- T
Integer; number of diffusion timesteps.
- epochs
Integer; training epochs.
Integer; hidden width of the denoising MLP.
- lr
Numeric; learning rate.
- seed
Optional RNG seed.
- backend
"r"(default, ELM-style MLP denoiser) or"torch"(autograd U-Net denoiser viatorch::optim_adam; requires thetorchSuggests dependency). v2.7.0 upgrade.- device
"cpu"(default),"mps", or"cuda"whenbackend = "torch".
