
Bagging aggregator over member predictions (Geron Ch 6, morie.fn grbag)
Source:R/geron_ml_native.R
morie_geron_bagging_predictor.RdMean / median / hard-vote aggregation, with the across-predictor variance (ddof = 1, matching grbag) as the disagreement diagnostic.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_bagging_predictor(V)
#> $prediction
#> [1] 4.5
#>
#> $per_instance_variance
#> [1] 6
#>
#> $mean_disagreement
#> [1] 6
#>
#> $n_predictors
#> [1] 8
#>
#> $aggregate
#> [1] "mean"
#>
#> $se
#> [1] 0.8660254
#>
#> $estimate
#> [1] 4.5
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "Bagging ensemble aggregation"
#>