predict_calibratR {CalibratR} | R Documentation |
predict_calibratR
Description
maps the uncalibrated predictions new
into calibrated predictions using the passed over calibration models
Usage
predict_calibratR(calibration_models, new = NULL, nCores = 4)
Arguments
calibration_models |
list of trained calibration models that were constructed using the |
new |
vector of new uncalibrated instances. Default: 100 scores from the minimum to the maximum of the original ML scores |
nCores |
|
Details
if no new
value is given, the function will evaluate a sequence of numbers ranging from the minimum to the maximum of the original values in the training set
Value
list object with the following components:
predictions |
a list containing the calibrated predictions for each calibration model |
significance_test_set |
a list containing the percentage of |
pred_per_bin |
a list containing the number of instances in each bin for the binning models |
Author(s)
Johanna Schwarz
Examples
## Loading dataset in environment
data(example)
test_set <- example$test_set
calibration_model <- example$calibration_model
## Predict for test set
predictions <- predict_calibratR(calibration_model$calibration_models, new=test_set, nCores = 2)