kfoldPredict.hyper_gam: k-Fold Prediction of hyper_gam Model

View source: R/kfoldPredict.R

kfoldPredict.hyper_gamR Documentation

k-Fold Prediction of hyper_gam Model

Description

k-fold prediction of hyper_gam model.

Usage

kfoldPredict.hyper_gam(
  object,
  k,
  mc.cores = switch(.Platform$OS.type, windows = 1L, detectCores()),
  ...
)

Arguments

object

a hyper_gam object

k

integer scalar

mc.cores

integer scalar, see function mclapply

...

additional parameters, currently not in use

Value

Function kfoldPredict.hyper_gam() returns a numeric vector, with attributes for savvy developers

attr(.,'fold')

integer vector, indices of the i-th fold

attr(.,'sgn')

numeric vector of length-k, sign-adjustment for each fold

attr(.,'no_sadj')

numeric vector, predictions without sign adjustment

attr(.,'global_sadj')

numeric vector, predictions based on sign-adjustment by the complete data (instead of each fold)


hyper.gam documentation built on June 8, 2025, 10:41 a.m.