基函数自定义问题fitrgp ()

3视图(30天)
Shilan金
Shilan金 2018年3月9日
回答: 不过李2019年7月21日
我用hfcn = @ (x) (v1, x);自定义自己的基函数,当我使用fitrgp符合高斯过程回归(x, y, BasisFunction, hfcn,β,beta0,‘KernelFunction’,‘ardsquaredexponential’,‘详细’,1,……“优化”、“fminunc’, ....不过,我返回了一个错误使用猫”的错误。维矩阵的连接是不一致的。”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?

答案(1)

不过李
不过李 2019年7月21日
beta0的尺寸是什么?我建议你检查是否一个2×1矩阵beta0因为你的基础是n除以2。

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!