10#define BOUNDINGLAYER_H
78 void set(
const Index&);
104 string write_expression(
const Tensor<string, 1>&,
const Tensor<string, 1>&)
const;
This class represents a layer of bounding neurons.
void set_lower_bounds(const Tensor< type, 1 > &)
string write_expression_c() const
BoundingLayer::write_expression_c.
void set_upper_bound(const Index &, const type &)
type get_upper_bound(const Index &) const
void set_lower_bound(const Index &, const type &)
Index get_inputs_number() const
Get number of inputs.
string write_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
Returns a string with the expression of the lower and upper bounds functions.
void from_XML(const tinyxml2::XMLDocument &)
string write_expression_python() const
BoundingLayer::write_expression_python.
bool display
Display messages to screen.
Tensor< type, 1 > lower_bounds
Lower bounds of output variables.
bool is_empty() const
Returns true if the size of the layer is zero, and false otherwise.
BoundingMethod
Enumeration of available methods for bounding the output variables.
const BoundingMethod & get_bounding_method() const
Returns the method used for bounding layer.
void set_inputs_number(const Index &)
Tensor< type, 2 > calculate_outputs(const Tensor< type, 2 > &)
Index get_neurons_number() const
Return the neurons number in the bounding layer.
void set_upper_bounds(const Tensor< type, 1 > &)
const Tensor< type, 1 > & get_upper_bounds() const
Returns the upper bounds values of all the bounding neurons in the layer.
const Tensor< type, 1 > & get_lower_bounds() const
Returns the lower bounds values of all the bounding neurons in the layer.
BoundingMethod bounding_method
Method used to bound the values.
void set_display(const bool &)
void write_XML(tinyxml2::XMLPrinter &) const
string write_bounding_method() const
Returns a string writing if use bounding layer or not.
void set_bounding_method(const BoundingMethod &)
void set_neurons_number(const Index &)
Tensor< type, 1 > upper_bounds
Upper bounds of output variables.
type get_lower_bound(const Index &) const
This abstract class represents the concept of layer of neurons in OpenNN.