Generates synthetic tabular data using denoising diffusion probabilistic models (DDPM). This is a state-of-the-art generative approach for tabular data.
Usage
tabddpm_generate(
data,
target,
n_synthetic,
n_steps = 1000L,
hidden_dim = 256L,
epochs = 1000L,
batch_size = 32L
)Details
TabDDPM requires the 'torch' package. The model learns the data distribution through a denoising process and can generate realistic synthetic samples.
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("torch", quietly = TRUE)) {
synthetic <- tabddpm_generate(
data = training_data,
target = "outcome",
n_synthetic = 100
)
}
} # }