I like to use a custom Basis function for fitrgp.
beta0 = [1.5,2.0];
hfcn = @(X) (beta0(1).*(X).^beta0(2));
This should be a powerMean-function.
If I call:
gprMdl1 = fitrgp(x,y,'BasisFunction',hfcn,'Beta',beta0)
with dummy-data from:
load(fullfile(matlabroot,'examples','stats','gprdata2.mat'))
I get
Why is gprMdl1.Beta not 1x2 like beta0? Is it posible to optimize custom parameters in Basis function (like beta0)?
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/502270-problem-with-function-handle-for-basis-function-in-fitrgp#comment_790646
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/502270-problem-with-function-handle-for-basis-function-in-fitrgp#comment_790646
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/502270-problem-with-function-handle-for-basis-function-in-fitrgp#comment_1151553
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/502270-problem-with-function-handle-for-basis-function-in-fitrgp#comment_1151553
Sign in to comment.