Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RINETTEACHER_H
- #define RINETTEACHER_H
- #import "RIApplication.h"
- #import "RIView.h"
- #import "RINet.h"
- #import "RINetTeacherBase.h"
- class RINetTeacher : public RINetTeacherBase {
- public:
- RINetTeacher(RINet &net);
- ~RINetTeacher() { }
- // log-sigmoid
- static float sigmoidFn(float f);
- static float dSigmoidFn(float f);
- static void trainWave();
- static void record2SecondsThenTrainWave(RIView *sender);
- private:
- bool stop;
- unsigned period, cycles, lastCycle;
- double momentum, maxLearnRate, minLearnRate, minError;
- vector<float> vec;
- };
- #endif
Add Comment
Please, Sign In to add comment