Effacer les filtres
Effacer les filtres

I have stuck with using narnet .

5 vues (au cours des 30 derniers jours)
Yeasir Mohammad Akib
Yeasir Mohammad Akib le 21 Déc 2015
Commenté : Greg Heath le 27 Déc 2015
I have used the code provided by Greg in newsgroup. My sample code is here:
Input
clc,clear;
plt=0;
X=load('BOD test.txt');
L=length(X),
net=narnet(1:.1,10);
view(net),
[Xs,Xsi,Asi,Ts] = preparets( net, {}, {}, X );
ts = cell2mat(Ts);
plt = plt+1; figure(plt), hold on
plot( 1:L, ts, 'LineWidth', 2 )
rng( 'default' )
[net tr Ys Es Af Xf] = train( net, Xs, Ts, Xsi, Asi );
view( net )
NMSEs = mse( Es ) /var( ts,1 )
ys = cell2mat( Ys );
plot( 1:L, ys, 'ro', 'LineWidth', 2 )
axis( [ 0 22 0 1.3 ] )
legend( 'TARGET', 'OUTPUT' )
title( 'OPENLOOP NARNET RESULTS')
And the output is:
L =
18
NMSEs =
1.0000
And what's wrong with curve plot:
  4 commentaires
Yeasir Mohammad Akib
Yeasir Mohammad Akib le 26 Déc 2015
Sir, sorry for my approach. I won't do this again but I was desperate for seeking the answer for my problem. Besides no one is here to solve my problem even if it's my teacher. So I have to seek help from this type of active group. And I think Image Analyst's perspective is right at all.
Greg Heath
Greg Heath le 27 Déc 2015
I understand your point. However, often the descriptions of the same problem from the same poster in the two forums are different.
Consequently I have found myself dizzily ping ponging back and forth between the two.
It is very, very annoying.
Therefore, I will continue, at least for neural nets, to rant my dissatisfaction. However, I will add a neural net qualifier.
Grumpy Greg

Connectez-vous pour commenter.

Réponse acceptée

Greg Heath
Greg Heath le 26 Déc 2015
net = narnet(1:.1,10);
1:0.1 is an error
However, I do not think that you have enough data to do what you wish.
Any further communication should be made via the NEWSGROUP.
Greg

Plus de réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by