prediction of any output point according to given input after regressing using ANN in matlab

3 次查看(过去 30 天)
Hello dear,
I saw some videos about how to use ANN for regression. fortunately i am also able to regression but the point is that after doing regression and after saving that "simple script" code, how do we predict any result?
i mean if i have given input of any random
x=[4 5 7 9 15];
and output as
Y=[18 22 28 35 43];
now after regression using ANN i can able to get the predicted Ypred value.
but what if i want to get the value of Y at X=6 or 60 or anything.....!!!!
Please can you light on this that which steps and codes i have to execute.?
Thanking you in Advance,
Ashish Kundaliya
  1 个评论
Ashish Kundaliya
Ashish Kundaliya 2020-6-7
Hey, I got the answer.
i am adding answer here, if anyone wants it.
After doing regression in ANN tool of matlab using "nnstart" command. at the end they will ask you to save " Matlab function", so you can save your matlab function with appropriate name. so, later you can use this function to predict any in between values.
by Calling that function with those input(s).
Sorry for the inconvienience if i have wasted your time by asking this above question.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by