プリンキピア

第18章ガウス過程

18.3.2. Equations for Making Predictions and Learning Kernel Hyperparameters in GP Regression18.3.2 GP回帰で予測をし、カーネルのハイパーパラメータを学習するための式

We list here the equations you will use for learning hyperparameters and making predictions in Gaussian process regression. Again, we assume a vector of regression targets 𝐲, indexed by inputs X={x1,…,xn}, and we wish to make a prediction at a test input x∗. We assume i.i.d. additive zero-mean Gaussian noise with variance σ2. We use a Gaussian process prior f(x)∼𝒢𝒫(m,k) for the latent noise-free function, with mean function m and kernel function k. The kernel itself has parameters θ that we want to learn. For example, if we use an RBF kernel, k(xi,xj)=a2exp⁡(−12ℓ2||x−x′||2), we want to learn θ={a2,ℓ2}. Let K(X,X) represent an n×n matrix corresponding to evaluating the kernel for all possible pairs of n training inputs. Let K(x∗,X) represent a 1×n vector formed by evaluating k(x∗,xi), i=1,…,n. Let μ be a mean vector formed by evaluating the mean function m(x) at every training points x.
英語のヒント
ここに、ガウス過程回帰でハイパーパラメータを学習し予測をするのに使う式を挙げる。再び、入力X={x1,…,xn}でインデックスづけされた回帰の目標値のベクトル𝐲を仮定し、テスト入力x∗で予測をしたいとする。分散σ2の、独立同分布で平均0の加法的なガウスノイズを仮定する。ノイズのない潜在的な関数には、平均関数mとカーネル関数kをもつガウス過程の事前分布f(x)∼𝒢𝒫(m,k)を使う。カーネル自体に、学習したいパラメータθがある。たとえば、RBFカーネルk(xi,xj)=a2exp⁡(−12ℓ2||x−x′||2)を使うなら、θ={a2,ℓ2}を学習したい。K(X,X)は、n個の訓練入力のありうるすべての対についてカーネルを評価することに対応するn×nの行列を表すとする。K(x∗,X)は、i=1,…,nについてk(x∗,xi)を評価してできる1×nのベクトルを表すとする。μは、すべての訓練点xで平均関数m(x)を評価してできる平均ベクトルとする。
Typically in working with Gaussian processes, we follow a two-step procedure. 1. Learn kernel hyperparameters θˆ by maximizing the marginal likelihood with respect to these hyperparameters. 2. Use the predictive mean as a point predictor, and 2 times the predictive standard deviation to form a 95% credible set, conditioning on these learned hyperparameters θˆ.
英語のヒント
ふつう、ガウス過程を扱うときは2段階の手順に従う。1. カーネルのハイパーパラメータθˆを、これらのハイパーパラメータについて周辺尤度を最大化することで学習する。2. 学習したハイパーパラメータθˆで条件づけて、予測平均を点予測量として使い、予測標準偏差の2倍を使って95%信用集合を作る。
The log marginal likelihood is simply a log Gaussian density, which has the form:
英語のヒント
対数周辺尤度は単に対数ガウス密度であり、次の形をもつ。
log⁡p(𝐲|θ,X)=−12𝐲⊤[Kθ(X,X)+σ2I]−1𝐲−12log⁡|Kθ(X,X)|+c(18.3.4)
The predictive distribution has the form:
英語のヒント
予測分布は次の形をもつ。
p(y∗|x∗,𝐲,θ)=𝒩(a∗,v∗)(18.3.5)
a∗=kθ(x∗,X)[Kθ(X,X)+σ2I]−1(𝐲−μ)+μ(18.3.6)
v∗=kθ(x∗,x∗)−Kθ(x∗,X)[Kθ(X,X)+σ2I]−1kθ(X,x∗)(18.3.7)