14 #ifndef __PERCEPTRON_H__
15 #define __PERCEPTRON_H__
50 explicit Perceptron(
const size_t&,
const double&);
95 void set(
const size_t&);
96 void set(
const size_t&,
const double&);
Vector< double > synaptic_weights
Synaptic weights vector.
void set_display(const bool &)
void prune_input(const size_t &)
void initialize_bias_uniform(const double &, const double &)
void initialize_bias_normal(const double &, const double &)
double calculate_activation(const double &) const
void initialize_synaptic_weights(const double &)
const double & get_synaptic_weight(const size_t &) const
Matrix< double > calculate_Hessian(const Vector< double > &) const
size_t count_parameters_number(void) const
Returns the number of parameters (bias and synaptic weights) in the perceptron.
ActivationFunction
Enumeration of available activation functions for the perceptron neuron model.
void set_synaptic_weights(const Vector< double > &)
const ActivationFunction & get_activation_function(void) const
Returns the activation function of the neuron.
bool display
Display messages to screen.
void set_activation_function(const ActivationFunction &)
Perceptron & operator=(const Perceptron &)
std::string write_activation_function(void) const
Returns a string with the name of the activation function of the neuron.
Vector< double > arrange_parameters(void) const
Returns the parameters (bias and synaptic weights) of the perceptron.
void set_bias(const double &)
void set_inputs_number(const size_t &)
void initialize_synaptic_weights_uniform(const double &, const double &)
double calculate_combination(const Vector< double > &) const
Vector< double > calculate_combination_gradient(const Vector< double > &) const
Returns the partial derivatives of the combination with respect to the inputs.
ActivationFunction activation_function
Activation function variable.
void set(void)
Sets the number of inputs to zero and the rest of members to their default values.
bool operator==(const Perceptron &) const
size_t get_inputs_number(void) const
Returns the number of inputs to the neuron.
double calculate_output(const Vector< double > &) const
void initialize_synaptic_weights_normal(const double &, const double &)
Matrix< double > calculate_combination_Hessian(const Vector< double > &) const
This method retuns the second derivatives of the combination with respect to the inputs.
virtual ~Perceptron(void)
std::string write_expression(const Vector< std::string > &, const std::string &) const
const bool & get_display(void) const
void initialize_bias(const double &)
void initialize_parameters(const double &)
double calculate_activation_derivative(const double &) const
const Vector< double > & arrange_synaptic_weights(void) const
Returns the synaptic weight values of the neuron.
Vector< double > calculate_gradient(const Vector< double > &) const
const double & get_bias(void) const
Returns the bias value of the neuron.
double calculate_activation_second_derivative(const double &) const
void set_synaptic_weight(const size_t &, const double &)
void set_parameters(const Vector< double > &)