THyperTan


This template implements hyper tangent(tanh) activation function used in neural networks.

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

// Tanh. Return in range [-1..+1] 
template<class FLOAT>
class THyperTan : public IActivator<FLOAT>
{
public:
    THyperTan(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