Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:48:23

0001 /*
0002  * TrainingFunction.h
0003  *
0004  *  Created on: Apr 23, 2016
0005  *      Author: Pawel Sznajder
0006  */
0007 
0008 #ifndef TRAININGFUNCTION_H_
0009 #define TRAININGFUNCTION_H_
0010 
0011 #include <string>
0012 
0013 #include "../beans/Data.h"
0014 
0015 namespace NumA {
0016 
0017 class TrainingFunction {
0018 
0019 public:
0020 
0021     TrainingFunction();
0022     TrainingFunction(const std::string& name);
0023     virtual ~TrainingFunction();
0024     virtual TrainingFunction* clone() const;
0025 
0026     virtual double evaluate(const Data& output,
0027             const Data& outputReference) const;
0028     virtual double partialDerivative(double output,
0029             double outputReference) const;
0030 
0031 protected:
0032 
0033     TrainingFunction(const TrainingFunction& other);
0034 };
0035 
0036 }
0037 
0038 #endif /* TRAININGFUNCTION_H_ */