Performance estimation functions
These functions determine the performance of fitted model based on its
predictions. They are used both for evaluating whole modeling procedures and
to tune model parameters, i.e. find the parameter values with the best
The parameter tuning routine is designed to minimize its error function (or
optimization criteria), which is why functions that are to be maximized must
have their sign changed, like
1 2 3 4 5 6 7 8 9 10
The true response values, be it class labels, numeric values or survival outcomes.
A prediction object.
See the argument
Whether to remove missing values or not.
Custom performance estimation functions should be implemented as follows:
A vector of true responses.
Prediction returned from the prediction function.
In most cases the true response and the predictions are of the same type,
e.g. true and fitted values in a regression or class labels in a
classification problem, but it is not a requirement. An example of different
types could be if the prediction function produce class probabilities for
all classes rather than one label, or the risks that the observations will
experience the event of interest, to be compared to the actual outcome that
it did occur or has not yet occurred at a specific time point.
neg_harrell_c for an example of the latter.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.