This template implements linear transformation activation function used in neural networks.
You can find more information in comments below. Overrided methods can be found in corresponding base class.
// Return scaled and shifted value(r = a * x + b)
template<class TYPE>
class TLinear : public IActivator<TYPE>
{
public:
TLinear(const TYPE bias, const TYPE scale);
TYPE Calculate(const TYPE value) override;
TYPE Derivative(const TYPE value) override;
};
Namespace: | nitisa::ai::activators |
Include: | Nitisa/Modules/AI/Activators.h |