Skip to content

generate_data_DSM

generate_data_DSM(net, x0, times, sigma, maxiter=100, generator=None)

Sample from a trained DSM model using annealed Langevin dynamics.

Parameters:

  • net (Module) –

    Trained score model.

  • x0 (torch.Tensor of shape (nsamples, ndim + 2)) –

    Initial states including noise-level and time columns.

  • times (torch.Tensor of shape (nsamples,)) –

    Time values assigned to generated samples.

  • sigma (torch.Tensor of shape (L,)) –

    Noise schedule, typically ScoreEstimator.sigma_.

  • maxiter (int, default: 100 ) –

    Number of Langevin steps per noise level.

Returns:

  • sol ( torch tensor of shape (nsamples, ndim + 2) ) –

    Generated states including auxiliary columns.