How to specify same length scale for different predictors in fitrgp?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (1)
Ayush Aniket
el 21 de En. de 2025 a las 10:06
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.
0 comentarios
Ver también
Categorías
Más información sobre Gaussian Process Regression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!