risk {NeuralEstimators} | R Documentation |
computes a Monte Carlo approximation of an estimator's Bayes risk
risk(
assessment,
loss = function(x, y) abs(x - y),
average_over_parameters = FALSE,
average_over_sample_sizes = TRUE
)
assessment |
an object returned by |
loss |
a binary operator defining the loss function (default absolute-error loss) |
average_over_parameters |
if |
average_over_sample_sizes |
if |
a dataframe giving an estimate of the Bayes risk