How to specify same length scale for different predictors in fitrgp?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Ayush Aniket
le 21 Jan 2025
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 commentaires
Voir également
Catégories
En savoir plus sur Gaussian Process Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!