core.density.unconditional_density_estimation.SampleDataset
core.density.unconditional_density_estimation.SampleDataset(data)Dataset class for unconditional density estimation. This is required, since the training method of dingo.core.posterior_models.Base expects a tuple of (theta, *context) as output of the DataLoader, but here we have no context, so len(context) = 0. This SampleDataset therefore returns a tuple (theta, ) instead of just theta.
Attributes
| Name | Description |
|---|---|
| data | |
| length |