Apply a neural estimator to data
estimate(estimator, Z, X = NULL, batchsize = 32, use_gpu = TRUE)
a matrix of outputs resulting from applying estimator
to Z
(and possibly X
)
a neural estimator that can be applied to data in a call of the form estimator(Z)
data in a format amenable to the neural-network architecture of estimator
additional inputs to the neural network; if provided, the call will be of the form estimator((Z, X))
the batch size for applying estimator
to Z
. Batching occurs only if Z
is a list, indicating multiple data sets
boolean indicating whether to use the GPU if it is available
sampleposterior()
for making inference with neural posterior or likelihood-to-evidence-ratio estimators