TQuadratic


This template implements quadratic error function used in neural networks.

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

template<class FLOAT>
class TQuadratic :public IErrorFunction<FLOAT>
{
public:
    FLOAT Error(const FLOAT output, const FLOAT expected, const FLOAT amount, IActivator<FLOAT> *activator) override;
    FLOAT Derivative(const FLOAT output, const FLOAT expected, const FLOAT amount, IActivator<FLOAT> *activator) override;
};
Namespace: nitisa::ai::errors
Include: Nitisa/Modules/AI/Errors.h