Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 srishti Posts: 12 Registered: 9/15/12
Re: neural network
Posted: Mar 13, 2013 9:44 AM

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)
[R,Q]=size(x);
a=0.3; % define the range of random variables
b=-0.3;
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);
x=mammoin;t=mammotar;
net = patternnet(10)
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,t,y)

Date Subject Author
3/12/13 srishti
3/12/13 Greg Heath
3/13/13 srishti
3/14/13 Greg Heath