sbi
sbi copied to clipboard
More flexibility for broadcasting shapes in `DensityEstimator`s
As raised in #1066 the DensityEstimator
s currently have the following limitations:
Not all DensityEstimator
s can...
- ...handle
batch_shapes
(but onlybatch_dims
, i.e. scalar values) - ...evaluate one datapoint under multiple conditions with
log_prob
without adapting thebatch_dim
of the datapoint - ...perform
log_prob
on data withoutiid_dim_input
. I.e.log_prob((50,3), (50,4))
might fail, butlog_prob((1,50,3), (50,4))
will work