![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Public Member Functions | |
DenseLayer (const int &neurons, const std::string &activation, const std::pair< size_t, size_t > &kernel_shape, const bool &random_kernel) | |
DenseLayer (const int &neurons, const std::string &activation, const std::vector< std::valarray< double > > &kernel) | |
DenseLayer (const DenseLayer &layer)=default | |
~DenseLayer ()=default | |
DenseLayer & | operator= (const DenseLayer &layer)=default |
DenseLayer (DenseLayer &&)=default | |
DenseLayer & | operator= (DenseLayer &&)=default |
Public Attributes | |
double(* | activation_function )(const double &) |
double(* | dactivation_function )(const double &) |
int | neurons |
std::string | activation |
std::vector< std::valarray< double > > | kernel |
neural_network::layers::DenseLayer class is used to store all necessary information about the layers (i.e. neurons, activation and kernel). This class is used by NeuralNetwork class to store layers.
Definition at line 125 of file neural_network.cpp.
|
inline |
Constructor for neural_network::layers::DenseLayer class
neurons | number of neurons |
activation | activation function for layer |
kernel_shape | shape of kernel |
random_kernel | flag for whether to initialize kernel randomly |
Definition at line 141 of file neural_network.cpp.
|
inline |
Constructor for neural_network::layers::DenseLayer class
neurons | number of neurons |
activation | activation function for layer |
kernel | values of kernel (useful in loading model) |
Definition at line 183 of file neural_network.cpp.
|
default |
Copy Constructor for class DenseLayer.
model | instance of class to be copied. |
|
default |
Destructor for class DenseLayer.
|
default |
Move constructor for class DenseLayer
|
default |
Copy assignment operator for class DenseLayer
|
default |
Move assignment operator for class DenseLayer
std::string machine_learning::neural_network::layers::DenseLayer::activation |
Definition at line 131 of file neural_network.cpp.
double(* machine_learning::neural_network::layers::DenseLayer::activation_function) (const double &) |
Definition at line 128 of file neural_network.cpp.
double(* machine_learning::neural_network::layers::DenseLayer::dactivation_function) (const double &) |
Definition at line 129 of file neural_network.cpp.
std::vector<std::valarray<double> > machine_learning::neural_network::layers::DenseLayer::kernel |
Definition at line 132 of file neural_network.cpp.
int machine_learning::neural_network::layers::DenseLayer::neurons |
Definition at line 130 of file neural_network.cpp.