Problem in forecasting using GRNN
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (3)
ahmed ayad
am 26 Jul. 2020
the same problem is with me>>>> i think that grnn is not appropraite for prediction>>>
0 Kommentare
Shubham Rawat
am 10 Aug. 2020
Bearbeitet: Shubham Rawat
am 10 Aug. 2020
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Define Shallow Neural Network Architectures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!