How to specify same length scale for different predictors in fitrgp?

6 次查看(过去 30 天)
Hi,
I have a vector of predictors and I want to fix same length scale for some of the predictors. Is there any way in the fitrgp?

回答(1 个)

Ayush Aniket
Ayush Aniket 2025-1-21
To fix the same length scale for certain predictors in a Gaussian Process Regression (GPR) model using MATLAB's fitrgp, you can manually adjust the initial KernelParameters name-value argument of the function to specify the same value for the desired predictors. However, the fitrgp function doesn't directly allow setting fixed length scales during optimization. Instead, you can initialize them to the same value and then check if they remain similar after fitting.
Refer to the following documentation section which shows the steps for the same: https://www.mathworks.com/help/stats/fitrgp.html#buv_v2o-1
If you need to completely fix the length scales during optimization, you might need to implement a custom optimization routine outside of fitrgp, as fitrgp optimizes these hyperparameters by default.

类别

Help CenterFile Exchange 中查找有关 Gaussian Process Regression 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by