Learn R Programming

NeuralEstimators (version 0.2.0)

estimate: estimate

Description

Apply a neural estimator to data

Usage

estimate(estimator, Z, X = NULL, batchsize = 32, use_gpu = TRUE)

Value

a matrix of outputs resulting from applying estimator to Z (and possibly X)

Arguments

estimator

a neural estimator that can be applied to data in a call of the form estimator(Z)

Z

data in a format amenable to the neural-network architecture of estimator

X

additional inputs to the neural network; if provided, the call will be of the form estimator((Z, X))

batchsize

the batch size for applying estimator to Z. Batching occurs only if Z is a list, indicating multiple data sets

use_gpu

boolean indicating whether to use the GPU if it is available

See Also

sampleposterior() for making inference with neural posterior or likelihood-to-evidence-ratio estimators