Basis function custom problem in fitrgp()
2 ビュー (過去 30 日間)
古いコメントを表示
I used hfcn = @(x)[v1,x]; to custom my own basis function when I fit Gaussian Process Regression using fitrgp(x,y,'BasisFunction',hfcn,'Beta',beta0,'KernelFunction','ardsquaredexponential','Verbose',1, ... 'Optimizer','fminunc', .... However, I was returned with an error "Error using cat. Dimensions of matrices being concatenated are not consistent." I am pretty sure that my v1 is of dimension n by 1 and my x used in fitrgp() is of dimension n by 1 as well. Could you please let me know anything wrong?
0 件のコメント
回答 (1 件)
Hyunjung Lee
2019 年 7 月 21 日
What is the dimension of beta0? I would suggest that you check if beta0 is a 2 by 1 matrix since your basis is n by 2.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Gaussian Process Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!