The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: neural network
Replies: 3   Last Post: Mar 14, 2013 12:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 12
Registered: 9/15/12
Re: neural network
Posted: Mar 13, 2013 9:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks for your help. But can you please tell me how to do that? I tried out following code but it is still not working.

S1=1; % numbe of hidden layers
S2=2; % number of output layers (= number of classes)
a=0.3; % define the range of random variables
W1=a + (b-a) *rand(S1,R); % Weights between Input and Hidden Neurons
W2=a + (b-a) *rand(S2,S1); % Weights between Hidden and Output Neurons
b1=a + (b-a) *rand(S1,1); % Weights between Input and Hidden Neurons
b2=a + (b-a) *rand(S2,1);
net = patternnet(10)
net = train(net,x,t);
y = net(x);
perf = perform(net,t,y)

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.