TLogistic


This template implements logistic(sigmoid) activation function used in neural networks.

You can find more information in comments below. Overrided methods can be found in corresponding base class.

// Sigmoid. Return in range [0..1] 
template<class FLOAT>
class TLogistic : public IActivator<FLOAT>
{
public:
    TLogistic(const FLOAT gain);

    FLOAT Calculate(const FLOAT value) override;
    FLOAT Derivative(const FLOAT value) override;
};
Namespace: nitisa::ai::activators
Include: Nitisa/Modules/AI/Activators.h