Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


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 + (ba) *rand(S1,R); % Weights between Input and Hidden Neurons W2=a + (ba) *rand(S2,S1); % Weights between Hidden and Output Neurons b1=a + (ba) *rand(S1,1); % Weights between Input and Hidden Neurons b2=a + (ba) *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)



