Problem in forecasting using GRNN

조회 수: 2 (최근 30일)
Ulin Nuhaq
Ulin Nuhaq 2020년 7월 13일
편집: Shubham Rawat 2020년 8월 10일
I will predict some values with GRNN, but I have problem with output values. All output values of testing have same value with last value of output in training.
x =[1 2 3 4 5 6 7 8 9 10] ;
y =[1 4 6 8 10 12 14 16 18 20] ;
xx = 30:35;
[x, map] = mapstd(x);
xx = mapstd('apply', xx, map);
y = mapstd('apply', y, map);
s = 0.3;
grnn = newgrnn(x, y, s);
test_P = sim(grnn, xx);
test_P = mapstd('reverse',test_P,map);
display(test_P)
>>tes
test_P =
20 20 20 20 20 20

답변 (3개)

Ulin Nuhaq
Ulin Nuhaq 2020년 7월 17일
does anyone know the answer above?

ahmed ayad
ahmed ayad 2020년 7월 26일
the same problem is with me>>>> i think that grnn is not appropraite for prediction>>>

Shubham Rawat
Shubham Rawat 2020년 8월 10일
편집: Shubham Rawat 2020년 8월 10일
Hi Ulin,
While you are creating network
grnn = newgrnn(x,y,s);
You have used new x and y after changed using mapstd”, instead of that you may use original values of x and y. That will lead you to desired results.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by