14 #ifndef __PERCEPTRONLAYER_H__
15 #define __PERCEPTRONLAYER_H__
28 #include "perceptron.h"
105 void set(
const size_t&,
const size_t&);
void set_synaptic_weights(const Matrix< double > &)
void randomize_parameters_normal(void)
const bool & get_display(void) const
void set_inputs_number(const size_t &)
Vector< double > arrange_parameters(void) const
Vector< double > calculate_activations_derivatives(const Vector< double > &) const
void prune_perceptron(const size_t &)
PerceptronLayer & operator=(const PerceptronLayer &)
void initialize_random(void)
void set_biases(const Vector< double > &)
std::string write_activation_function(void) const
const Vector< Perceptron > & get_perceptrons(void) const
Returns a constant reference to the vector of perceptrons defining the layer.
size_t count_parameters_number(void) const
Returns the number of parameters (biases and synaptic weights) of the layer.
Matrix< double > calculate_combinations_Jacobian(const Vector< double > &) const
Vector< double > calculate_combinations(const Vector< double > &) const
size_t get_inputs_number(void) const
Returns the number of inputs to the layer.
void set_perceptron(const size_t &, const Perceptron &)
virtual ~PerceptronLayer(void)
ActivationFunction
Enumeration of available activation functions for the perceptron neuron model.
Vector< Matrix< double > > calculate_Hessian_form(const Vector< double > &) const
bool display
Display messages to screen.
const Perceptron::ActivationFunction & get_activation_function(void) const
Vector< Vector< double > > arrange_perceptrons_parameters(void) const
void set_display(const bool &)
Vector< double > calculate_outputs(const Vector< double > &) const
void initialize_synaptic_weights(const double &)
Vector< double > calculate_activations_second_derivatives(const Vector< double > &) const
void grow_inputs(const size_t &)
const Perceptron & get_perceptron(const size_t &) const
Vector< size_t > count_cumulative_parameters_number(void) const
void set_parameters(const Vector< double > &)
Vector< Matrix< double > > calculate_combinations_Hessian_form(const Vector< double > &) const
void randomize_parameters_uniform(void)
Matrix< double > arrange_activations_Jacobian(const Vector< double > &) const
Vector< Matrix< double > > arrange_activations_Hessian_form(const Vector< double > &) const
void initialize_biases(const double &)
std::string write_expression(const Vector< std::string > &, const Vector< std::string > &) const
double calculate_parameters_norm(void) const
Calculates the norm of a layer parameters vector.
size_t get_perceptrons_number(void) const
Returns the size of the perceptrons vector.
void set_perceptrons_number(const size_t &)
void prune_input(const size_t &)
bool operator==(const PerceptronLayer &) const
void grow_perceptrons(const size_t &)
bool is_empty(void) const
Returns true if the size of the layer is zero, and false otherwise.
size_t count_perceptron_parameters_number(void) const
Vector< Perceptron > perceptrons
Matrix< double > calculate_Jacobian(const Vector< double > &) const
void set_perceptrons(const Vector< Perceptron > &)
Vector< double > calculate_activations(const Vector< double > &) const
Matrix< double > arrange_synaptic_weights(void) const
Vector< double > arrange_biases(void) const
void set_activation_function(const Perceptron::ActivationFunction &)
void initialize_parameters(const double &)