15 static Eigen::MatrixXd
activate(
const Eigen::MatrixXd &z) {
return z; };
24 static Eigen::MatrixXd
diff(
const Eigen::MatrixXd &a) {
return a; };
26 static inline std::string slug =
"actv";
Definition Activation.hpp:6
static Eigen::MatrixXd diff(const Eigen::MatrixXd &a)
Compute the derivative of the activation function.
Definition Activation.hpp:24
static Eigen::MatrixXd activate(const Eigen::MatrixXd &z)
Activate a layer's outputs.
Definition Activation.hpp:15