How to find error between predicted and actual data ?

7 次查看(过去 30 天)
I have trained a model using GPR and want to see error between predicted and actual data.

回答(1 个)

Adam Danz
Adam Danz 2020-8-30
编辑:Adam Danz 2020-8-30
Use predict(grpModel, x) to get the predicted response. x should be the x values of your training data. Then just subtract the predicted results from the y-values from your training data.
This page of the documentation has a demo. Search for "Compute the regression error on the test data."

类别

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