fixed Sigmoid function and modifications

This commit is contained in:
2016-02-07 21:32:22 +01:00
parent 567fcd2373
commit c75195fa04
6 changed files with 21 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ namespace ActivationFunction {
class Heaviside: public ActivationFunction {
public:
Heaviside(const float &lambdaP=1.0): lambda(lambdaP) {}
inline virtual float derivatedOutput(const float &,const float &) override { return 1.0; }
inline virtual float operator()(const float &x) override { return x>lambda ? 1.0f : 0.0f; };