14 #ifndef __PROBABILISTICLAYER_H__
15 #define __PROBABILISTICLAYER_H__
33 #include "../tinyxml2/tinyxml2.h"
94 void set(
const size_t&);
146 virtual tinyxml2::XMLDocument*
to_XML(
void)
const;
147 virtual void from_XML(
const tinyxml2::XMLDocument&);
void set_display(const bool &)
std::string write_competitive_expression(const Vector< std::string > &, const Vector< std::string > &) const
Vector< Matrix< double > > calculate_no_probabilistic_Hessian_form(const Vector< double > &) const
std::string write_softmax_expression(const Vector< std::string > &, const Vector< std::string > &) const
ProbabilisticMethod probabilistic_method
Probabilistic processing method.
bool operator==(const ProbabilisticLayer &) const
Vector< Matrix< double > > calculate_Hessian_form(const Vector< double > &) const
const ProbabilisticMethod & get_probabilistic_method(void) const
bool display
Display messages to screen.
std::string write_probabilistic_method(void) const
void prune_probabilistic_neuron(void)
std::string write_no_probabilistic_expression(const Vector< std::string > &, const Vector< std::string > &) const
std::string to_string(void) const
Returns a string representation of the current probabilistic layer object.
Vector< double > calculate_outputs(const Vector< double > &) const
Matrix< double > calculate_no_probabilistic_Jacobian(const Vector< double > &) const
virtual void set_default(void)
virtual tinyxml2::XMLDocument * to_XML(void) const
size_t probabilistic_neurons_number
Number of probabilistic neurons in the layer.
void initialize_random(void)
Initializes at random the probabilistic method.
const size_t & get_probabilistic_neurons_number(void) const
Returns the number of probabilistic neurons in the layer.
Vector< double > calculate_competitive_output(const Vector< double > &) const
void set_probabilistic_method(const ProbabilisticMethod &)
ProbabilisticLayer & operator=(const ProbabilisticLayer &)
std::string write_probabilistic_method_text(void) const
const bool & get_display(void) const
void set_probabilistic_neurons_number(const size_t &)
virtual void from_XML(const tinyxml2::XMLDocument &)
Vector< double > calculate_no_probabilistic_output(const Vector< double > &) const
Matrix< double > calculate_softmax_Jacobian(const Vector< double > &) const
std::string write_expression(const Vector< std::string > &, const Vector< std::string > &) const
Vector< double > calculate_softmax_output(const Vector< double > &) const
virtual ~ProbabilisticLayer(void)
Vector< Matrix< double > > calculate_competitive_Hessian_form(const Vector< double > &) const
This method throws an exception, since the competitive function is not derivable. ...
ProbabilisticMethod
Enumeration of available methods for interpreting variables as probabilities.
Vector< Matrix< double > > calculate_softmax_Hessian_form(const Vector< double > &) const
Matrix< double > calculate_Jacobian(const Vector< double > &) const
Matrix< double > calculate_competitive_Jacobian(const Vector< double > &) const
This method throws an exception, since the competitive function is not derivable. ...