risk {NeuralEstimators} | R Documentation |
computes a Monte Carlo approximation of an estimator's Bayes risk
Description
computes a Monte Carlo approximation of an estimator's Bayes risk
Usage
risk(
assessment,
loss = function(x, y) abs(x - y),
average_over_parameters = FALSE,
average_over_sample_sizes = TRUE
)
Arguments
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 |
Value
a dataframe giving an estimate of the Bayes risk
See Also
[Package NeuralEstimators version 0.2.0 Index]