NNFS
Neural network library from scratch
Loading...
Searching...
No Matches
NNFS::Activation Class Reference

Base class for all activation functions. More...

#include <Activation.hpp>

Inheritance diagram for NNFS::Activation:
[legend]

Public Member Functions

 Activation (ActivationType activation_type)
 Construct a new Activation object.
 
- Public Member Functions inherited from NNFS::Layer
 Layer (LayerType type)
 Construct a new Layer object.
 
virtual ~Layer ()=default
 Basic destructor.
 
virtual void forward (Eigen::MatrixXd &out, const Eigen::MatrixXd &x)=0
 Forward pass of the layer.
 
virtual void backward (Eigen::MatrixXd &out, const Eigen::MatrixXd &dx)=0
 Backward pass of the layer.
 

Public Attributes

ActivationType activation_type
 
- Public Attributes inherited from NNFS::Layer
LayerType type
 

Protected Attributes

Eigen::MatrixXd _forward_input
 

Detailed Description

Base class for all activation functions.

This class is the base class for all activation functions. It provides the interface for all activation functions.

Constructor & Destructor Documentation

◆ Activation()

NNFS::Activation::Activation ( ActivationType  activation_type)
inline

Construct a new Activation object.

Parameters
activation_typeType of activation function

Member Data Documentation

◆ _forward_input

Eigen::MatrixXd NNFS::Activation::_forward_input
protected

◆ activation_type

ActivationType NNFS::Activation::activation_type

The documentation for this class was generated from the following file: