Guest User

Untitled

a guest
Jun 24th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #ifndef RINETTEACHER_H
  2. #define RINETTEACHER_H
  3.  
  4. #import "RIApplication.h"
  5. #import "RIView.h"
  6. #import "RINet.h"
  7. #import "RINetTeacherBase.h"
  8.  
  9. class RINetTeacher : public RINetTeacherBase {
  10. public:
  11. RINetTeacher(RINet &net);
  12. ~RINetTeacher() { }
  13.  
  14. // log-sigmoid
  15. static float sigmoidFn(float f);
  16. static float dSigmoidFn(float f);
  17.  
  18. static void trainWave();
  19.  
  20. static void record2SecondsThenTrainWave(RIView *sender);
  21.  
  22. private:
  23. bool stop;
  24. unsigned period, cycles, lastCycle;
  25. double momentum, maxLearnRate, minLearnRate, minError;
  26. vector<float> vec;
  27. };
  28.  
  29. #endif
Add Comment
Please, Sign In to add comment