17 template <
typename SCALAR>
28 throw std::runtime_error(
"No loadConfigFile method implemented for selected activation term");
38 throw std::runtime_error(
"First order derivative not implemented for selected activation term");
43 throw std::runtime_error(
"Second order derivative not implemented for selected activation term");
virtual SCALAR firstOrderDerivative(const SCALAR s)
first order derivative of this activation
Definition: ActivationBase.hpp:36
virtual ~ActivationBase()=default
destructor
virtual void loadConfigFile(const std::string &filename, const std::string &termName, bool verbose=false)
load activations from file
Definition: ActivationBase.hpp:26
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: ActivationBase.hpp:18
virtual bool isActive(const SCALAR s)
return if term is active
Definition: ActivationBase.hpp:32
virtual SCALAR secondOrderDerivative(const SCALAR s)
second order derivative of this activation
Definition: ActivationBase.hpp:41
ActivationBase()=default
constructor
const bool verbose
Definition: JacobianCGTest.h:19
virtual void printInfo()
print to console
Definition: ActivationBase.hpp:46
virtual SCALAR computeActivation(const SCALAR s)
compute activation multiplier based on scalar input
Definition: ActivationBase.hpp:34