IErrorFunction


Interface describing error function for neural networks.

You can find more information in comments below.

template<class FLOAT>
class IErrorFunction
{
public:
    virtual FLOAT Error(const FLOAT output, const FLOAT expected, const FLOAT amount, IActivator<FLOAT> *activator) = 0; // Calculate error function value 
    virtual FLOAT Derivative(const FLOAT output, const FLOAT expected, const FLOAT amount, IActivator<FLOAT> *activator) = 0; // Calculate value of derivative of error function 
};
Namespace: nitisa::ai
Include: Nitisa/Modules/AI/Errors.h