Computes grid performance with a specified performance function
Source:R/SklearnClassifier.R
computeGridPerformance.Rd
Computes grid performance with a specified performance function
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")
#> $metric
#> [1] "computeAuc"
#>
#> $cvPerformance
#> [1] 1
#>
#> $cvPerformancePerFold
#> [1] 1
#>
#> $param
#> $param$hyperParam1
#> [1] 5
#>
#> $param$hyperParam2
#> [1] 100
#>
#>
#> $hyperSummary
#> metric fold value hyperParam1 hyperParam2
#> 1 computeAuc CV 1 5 100
#> 2 computeAuc 1 1 5 100
#>