NeuralNet 1.0
Loading...
Searching...
No Matches
Activation.hpp
1#pragma once
2
3#include <Eigen/Dense>
4
5namespace NeuralNet {
6class Activation {
7 public:
15 static Eigen::MatrixXd activate(const Eigen::MatrixXd &z) { return z; };
16
24 static Eigen::MatrixXd diff(const Eigen::MatrixXd &a) { return a; };
25
26 static inline std::string slug = "actv";
27};
28} // namespace NeuralNet
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