Predict exact value by using Pre trained GPR Model(gaussian process regression)

조회 수: 3 (최근 30일)
JaeWook Lee
JaeWook Lee 2022년 7월 25일
답변: Ayush Anand 2023년 9월 11일
i have 4 input data(a,b,c,d) and 1 output data.
%% MGPR(Multivariate Gaussian process regression) by using metamodel %%
clc; clear all; close all; warning off;
tbl = readtable('D-optimal.txt','Filetype','text',...
'ReadVariableNames',false);
tbl.Properties.VariableNames = {'Hole_horizon','Hole_vertical','Height','Depth','Deflection'};
tbl(1:20,:) %Data
gprMdl1 = fitrgp(tbl,'Deflection','KernelFunction','ardsquaredexponential',...
'FitMethod','sr','PredictMethod','fic','Standardize',1)
gprMdl2 = fitrgp(tbl1,'Deflection','KernelFunction','ardsquaredexponential',...
'FitMethod','sr','PredictMethod','fic','Standardize',1)
i wanna predict the exact value of deflection(Output).
is there any way to predict the output value about random input value?

답변 (1개)

Ayush Anand
Ayush Anand 2023년 9월 11일
Hi JaeWook,
I understand you have trained a Gaussian process model on some data and want to know how to use it to predict the values for certain input data you have. You can do this using the "predict" function, with the following syntax:
ypred=predict(gprMdl1,xtest) %where xtest is your test input data
You can refer to the following example which demonstrates how to train a Gaussian process regression model and then use it to predict values at certain inputs:
I hope this helps!

카테고리

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