fixed Sigmoid function and modifications
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user