Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About mSigma (variance) in gaussian_process.cpp #17

Closed
timberjack opened this issue Jul 12, 2017 · 1 comment
Closed

About mSigma (variance) in gaussian_process.cpp #17

timberjack opened this issue Jul 12, 2017 · 1 comment

Comments

@timberjack
Copy link

Dear Authors,

I am studying about gaussian process in LCB (Lower Confidence Bounds) evaluation. I take bo_branin.cpp as an example. I found variance is constantly lower than 1, which could be much smaller than mean value even in the early training step (for example, a gaussian model with only 2 samples trained. I tried my own example with mean value at around 170, but 0.2 variance with only 2 samples trained, where (170+-0.2) cannot contain the real value).

Through studying gaussian_process.cpp, I found that mSigma hugely decides the value of covariance. mSigma is set or gotten from function setHyperParameters and getHyperParameters in kernelRegressor.hpp, and is updated through kOptimizer in posterior_empirical.cpp. An initial 2-dimension points, mean and variance is combined into a 4-dimension vector to insert to kOptimizer. However, I doubt mean and variance is not calculated correctly as they are probably treated as same as the coordinates of 2-dimension points in kernelRegressor.hpp.

Could you help check about the calculation of variance? I feel interested into studying more.

Thanks,
Xianan

@rmcantin
Copy link
Owner

The variance is computed correctly. For certain models (not in all of them), the variance is estimated as a hyperparameter of the GP, like the kernel hyperparameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants