new doc and optical backprop

This commit is contained in:
2016-02-07 23:38:19 +01:00
parent 0cdedd38f7
commit e5dddc926a
10 changed files with 220 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "./BackPropagation.h"
namespace NeuralNetwork {
namespace Learning {
/** @class OpticalBackPropagation
* @brief
*/
class OpticalBackPropagation : public BackPropagation {
public:
OpticalBackPropagation(): BackPropagation() {
}
virtual ~OpticalBackPropagation() {
}
protected:
inline virtual float correction(const float & expected, const float &computed) const override {
register float tmp=(expected-computed);
register float ret=1+exp(tmp*tmp);
return tmp < 0? -ret:ret;
};
};
}
}