computeGridPerformance: Computes grid performance with a specified performance...

View source: R/SklearnClassifier.R

computeGridPerformanceR Documentation

Computes grid performance with a specified performance function

Description

Computes grid performance with a specified performance function

Usage

computeGridPerformance(prediction, param, performanceFunct = "computeAuc")

Arguments

prediction

a dataframe with predictions and outcomeCount per rowId

param

a list of hyperparameters

performanceFunct

a string specifying which performance function to use . Default 'compute_AUC'

Value

A list with overview of the performance

Examples

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 = "computeAuc")

OHDSI/PatientLevelPrediction documentation built on Feb. 14, 2025, 9:44 a.m.