For a Gaussian likelihood the optimal variational distribution is available in closed form, so the stochastic gradient loop of the paper is unnecessary and the collapsed bound can be evaluated exactly. When the inducing inputs ARE the training inputs the trace term is zero and both the bound and the predictive mean coincide with full GP regression – that identity is the anchor, and it is the one thing a sparse approximation must satisfy.
Usage
Gpsvi(
X,
y,
X_test = NULL,
inducing = NULL,
batch_size = NULL,
lengthscale = 1,
variance = 1,
noise = 0.1,
jitter = 1e-09
)References
Hensman, Fusi and Lawrence (2013), Gaussian processes for big data, UAI 2013, arXiv:1309.6835; Titsias (2009), AISTATS 2009, PMLR 5:567-574.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
Gpsvi(V, V)
#> $estimate
#> [1] 0.9699062
#>
#> $mean
#> [1] 0.9699062 1.9174208 2.8895238 3.8378281 4.8330643 5.7005738 6.9004118
#> [8] 7.3662141
#>
#> $variance
#> [1] 0.08581283 0.07832638 0.07661860 0.07635845 0.07635845 0.07661860 0.07832638
#> [8] 0.08581283
#>
#> $elbo
#> [1] -54.09351
#>
#> $gaussian_term
#> [1] -54.09351
#>
#> $trace_term
#> [1] 8e-09
#>
#> $n
#> [1] 8
#>
#> $method
#> [1] "collapsed sparse bound of Titsias (2009) as used by Hensman, Fusi & Lawrence (2013)"
#>
#> attr(,"class")
#> [1] "morie_rich_result" "list"
