TL1


This template implements L1 regularization 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 TL1 :public IRegularizeFunction<FLOAT>
{
public:
    FLOAT Output(const FLOAT value) override;
    FLOAT Derivative(const FLOAT value) override;
    bool IsDead(const FLOAT weight, const FLOAT new_weight) override;
};
Namespace: nitisa::ai::regularizers
Include: Nitisa/Modules/AI/Regularizers.h