This template implements cross-entropy 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 TCrossEntropy :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 |