2016-11-09 112 views
1

我使用calcualted高斯過程模型在Python GPY:獲得高斯過程模型置信界限在Python GPY

ker0 = GPy.kern.Bias(input_dim=1,variance=1e-2) 
... 
m = GPy.models.GPRegression(x, y, ker0+ker2) 

我可以

m.plot() 
plt.show 

繪製,並將其可視化的分,樣條和置信限度。現在我想提取參數和置信限以在另一個圖中使用數據。我的問題是,我怎樣才能訪問這些數據。

,如果我打印M I得到

Name : GP regression 
Objective : 31.9566881665 
Number of Parameters : 4 
Number of Optimization Parameters : 4 
Updates : True 
Parameters: 
    GP_regression.   |    value | constraints | priors 
    sum.bias.variance  | 7.48802926977e-61 |  +ve  | 
    sum.spline.variance  |  -2.99999065833 | -3.0,-1.0 | 
    sum.spline.c    |  19.8308670902 | 0.0,300.0 | 
    Gaussian_noise.variance |  50.2314402955 |  +ve  | 

THX!

回答

1

嘗試

m.sum.bias.variance 

通知m.開頭。