Advertisement
cristiano002

Trainbpm (3 warstwy)

May 26th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.41 KB | None | 0 0
  1. clear all
  2. clf
  3. nntwarn off
  4. format compact
  5. P=-1:.1:-.5;
  6. T=[-.9602 -.5770 -.0729 .3771 .6405 .6600];
  7. [R,Q]=size(P);
  8. S1=15;
  9. S2=15;
  10. [S3,Q]=size(T);
  11.  
  12. disp_freq = 100;
  13. max_epoch = 20000;
  14. err_goal = 1e-8;
  15. lr = 0.02;
  16.  
  17. [W1,B1,W2,B2,W3,B3]=initff(P,S1,'tansig',S2,'tansig',S3,'purelin');
  18. TP=[disp_freq,max_epoch,err_goal,lr];
  19. [W1,B1,W2,B2,W3,B3,TE,TR]=trainbpa(W1,B1,'tansig',W2,B2,'tansig',W3,B3,'purelin',P,T,TP);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement