aggregate.holdOutPredictions: Aggregate hold-out predictions

Description Usage Arguments Examples

View source: R/aggregate.R

Description

Aggregates hold-out predictions which have been extracted from a trainOcc object with the function holdOutPredictions.

Usage

1
2
## S3 method for class 'holdOutPredictions'
aggregate(x, ...)

Arguments

x

an object of class holdOutPredictions returned from holdOutPredictions.

...

currently unused.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
toy <- threeGaussians()
index <- createResample(toy$tr[, 1], times=2)
oc <- trainOcc(x=toy$tr[, -1], y=toy$tr[, 1], 
               index=index, 
               tuneGrid=expand.grid(sigma=c(0.1,1), ### not so large grid
                                    cNeg=2^seq(-5, -5, 5), 
                                    cMultiplier=2^seq(4, 12, 4)))
hop <- holdOutPredictions(oc)
boxplot(list(pos.r1=hop$pos$Resample1, pos.r2=hop$pos$Resample2, 
             un.r1=hop$un$Resample1, un.r2=hop$un$Resample2))
hop.agg <- aggregate(hop)
boxplot(list(pos=hop.agg$pos, un=hop.agg$un))

## End(Not run)

benmack/oneClass documentation built on Dec. 15, 2020, 7:38 p.m.