View source: R/HyperparameterSettings.R
| computeGridPerformance | R Documentation |
Computes grid performance for a hyperparameter combination (backwards compatible)
computeGridPerformance(prediction, param, performanceFunct = "computeAuc")
prediction |
A data.frame with predictions and an |
param |
A list of hyperparameters (values may include |
performanceFunct |
String or function to compute performance on a prediction data.frame.
Default is |
A list with overall and per-fold performance plus the parameter summary.
prediction <- data.frame(
rowId = c(1, 2, 3, 4, 5),
outcomeCount = c(0, 1, 0, 1, 0),
value = c(0.1, 0.9, 0.2, 0.8, 0.3),
index = c(1, 1, 1, 1, 1)
)
param <- list(hyperParam1 = 5, hyperParam2 = 100)
computeGridPerformance(prediction, param, performanceFunct = PatientLevelPrediction::computeAuc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.