필터 지우기
필터 지우기

Basis function custom problem in fitrgp()

조회 수: 8 (최근 30일)
Shilan Jin
Shilan Jin 2018년 3월 9일
답변: Hyunjung Lee 2019년 7월 21일
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?

답변 (1개)

Hyunjung Lee
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.

카테고리

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