00001 //=========================================================================== 00042 //=========================================================================== 00043 00044 00045 #ifndef _Perceptron_H_ 00046 #define _Perceptron_H_ 00047 00048 00049 #include <ReClaM/Optimizer.h> 00050 #include <ReClaM/Svm.h> 00051 00052 00054 class Perceptron : public Optimizer 00055 { 00056 public: 00058 Perceptron(); 00059 00061 ~Perceptron(); 00062 00063 void init(Model& model); 00064 void optimize(SVM& svm, const Array<double>& input, const Array<double>& target); 00065 double optimize(Model& model, ErrorFunction& error, const Array<double>& input, const Array<double>& target); 00066 }; 00067 00068 00069 #endif 00070