Given data Z
and a neural likelihood-to-evidence-ratio estimator
, computes the implied approximate maximum-likelihood estimate
If a vector theta0
of initial parameter estimates is given, the approximate likelihood is maximised by gradient descent. Otherwise, if a matrix of parameters theta_grid
is given, the approximate likelihood is maximised by grid search.
mlestimate(estimator, Z, theta_grid = NULL, theta0 = NULL, use_gpu = TRUE)
a p × K matrix of maximum-likelihood estimates, where p is the number of parameters in the statistical model and K is the number of data sets provided in Z
a neural likelihood-to-evidence-ratio estimator
data; it's format should be amenable to the architecture of estimator
a (fine) gridding of the parameter space, given as a matrix with p rows, where p is the number of parameters in the model
a vector of initial parameter estimates
a boolean indicating whether to use the GPU if it is available (default true)
sampleposterior()
, mapestimate()