Function handle for standard deviation of a GPR

2 ビュー (過去 30 日間)
Geovane Gomes
Geovane Gomes 2022 年 1 月 5 日
回答済み: yanqi liu 2022 年 1 月 5 日
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)

採用された回答

yanqi liu
yanqi liu 2022 年 1 月 5 日
yes,sir,may be use function file,such as
function ysd=spredict(gprMdl,x)
[~,ysd] = predict(gprMdl,x)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by