Function handle for standard deviation of a GPR
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to find a way to calculate the standard deviation of any point I want from a GPR model.
Function handle for predicted response works, but not for predicted standard deviations and I get the error 'Only functions can return multiple values'
Trust all clear
Thanks
gprMd1=fitrgp(x_train,y_train);
[yFit,ySD,yInt]=predict(gprMd1,x_test)
YFit=@(x) predict(gprMd1,x)
[~,YSD]=@(x) predict(gprMd1,x)
댓글 수: 0
채택된 답변
yanqi liu
2022년 1월 5일
yes,sir,may be use function file,such as
function ysd=spredict(gprMdl,x)
[~,ysd] = predict(gprMdl,x)
댓글 수: 0
추가 답변 (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!