ガウス過程回帰の予測曲線を延長させたい(外挿したい)
9 views (last 30 days)
Show older comments
学習させたデータ内での予測はできていますが、外挿がうまくいきません。
1週間程度延長させたいのですが、やり方がわからずに困っています。
外挿をさせるための指示を追加すれば解決するのか、それともこのコマンドではそもそも不可能なのか。
それすらわからない状況です。
テーブル内のデータの使用による GPR モデルの学習
を参考にコマンドを作成しました。以下URLです。
以下コマンドです。を参考にコマンドを作成しました。
%データの挿入
addpath '/Users/XXX/Documents'
T=readtable(['file.txt'])
%ガウスモデル(カーネルの選択)
gprMdl = fitrgp(T,'kg','KernelFunction','ardexponential',...
'FitMethod','sr','PredictMethod','fic','Standardize',1)
ypred = resubPredict(gprMdl);
figure();
x=T(:,1)
%データのプロット
plot(T.day,T.kg,'r.');
%グラフ内データの追加
hold on
%予測値のプロット
plot(T.day,ypred,'b');
xlabel('x');
ylabel('y');
%凡例の追加
legend({'data','predictions'},'Location','Best');
%グラフの幅の設定
axis([0 30 0 100]);
hold off;

0 Comments
Answers (0)
See Also
Categories
Find more on ガウス過程回帰 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!