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,7 +8,9 @@ namespace ActivationFunction {
class Linear: public ActivationFunction {
public:
Linear(const float &lambdaP=1.0): lambda(lambdaP) {}
inline virtual float derivatedOutput(const float &,const float &) override { return lambda; }
inline virtual float operator()(const float &x) override { return x*lambda; };
virtual ActivationFunction* clone() const override {