gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <NeuralNetwork.H>
Public Member Functions | |
TanhLayer (int inputSize, int outputSize) | |
template<typename Derived > | |
TanhLayer (const Eigen::MatrixBase< Derived > &weightsIn, const Eigen::MatrixBase< Derived > &biasIn) | |
virtual | ~TanhLayer (void) |
Destructor. More... | |
virtual Eigen::Matrix< TYPE, Eigen::Dynamic, 1 > & | activate (const Eigen::Matrix< TYPE, Eigen::Dynamic, 1 > &input) |
Public Member Functions inherited from NeuralLayer< TYPE > | |
NeuralLayer (int inputSize, int outputSize) | |
template<typename Derived > | |
NeuralLayer (const Eigen::MatrixBase< Derived > &weightsIn, const Eigen::MatrixBase< Derived > &biasIn) | |
virtual | ~NeuralLayer (void) |
Destructor. More... | |
int | inputSize (void) |
int | outputSize (void) |
Additional Inherited Members | |
Public Attributes inherited from NeuralLayer< TYPE > | |
Eigen::Matrix< TYPE, Eigen::Dynamic, 1 > | output |
The output from this layer. More... | |
Protected Attributes inherited from NeuralLayer< TYPE > | |
Eigen::Matrix< TYPE, Eigen::Dynamic, Eigen::Dynamic > | weights |
The neural weights for this layer. More... | |
Eigen::Matrix< TYPE, Eigen::Dynamic, 1 > | bias |
The biases for this layer. More... | |
Implements a neural layer with an scaled and offset tanh activation function
TYPE | the precision of the data to use, e.g. float, double |
Definition at line 131 of file NeuralNetwork.H.
Generate a neural layer of particular size
inputSize | The number of the inputs |
outputSize | The number of outputs |
Definition at line 137 of file NeuralNetwork.H.
|
inline |
Generate a neural layer of particular size providing the weights
weightsIn | The weights to set |
biasIn | The biases to set |
Derived | is used by Eigen's Curiously recurring template pattern (CRTP) |
Definition at line 146 of file NeuralNetwork.H.
Destructor.
Definition at line 150 of file NeuralNetwork.H.
|
inlinevirtual |
The sigmoidal activation function Evaluate the neural network using the sigmoid as the activation function
input | The input to this layer |
Reimplemented from NeuralLayer< TYPE >.
Definition at line 157 of file NeuralNetwork.H.
GTK+ IOStream
Beta
|