Calculates loss as the mean squared error between the predicted vector field and the vector field for transporting the parameter data to samples from the prior.
Parameters
Name
Type
Description
Default
theta
Parameter values at which to evaluate the density. Should have a batch dimension (even if size B = 1).
required
context
Context information (typically observed data). Must have the same leading (batch) dimension as theta.