24#include "statistics.h"
26#include "opennn_strings.h"
57 Tensor<Index, 1> get_outputs_dimensions()
const;
60 Index get_neurons_number()
const;
86 void set(
const Index&);
87 void set(
const Tensor<Index, 1>&);
88 void set(
const Tensor<Descriptives, 1>&);
89 void set(
const Tensor<Descriptives, 1>&,
const Tensor<Scaler, 1>&);
92 void set_inputs_number(
const Index&);
93 void set_neurons_number(
const Index&);
104 void set_mean(
const Index&,
const type&);
140 string write_expression(
const Tensor<string, 1>&,
const Tensor<string, 1>&)
const;
144 string write_expression_python()
const;
154 Tensor<Index, 1> input_variables_dimensions;
This abstract class represents the concept of layer of neurons in OpenNN.
This class represents a layer of scaling neurons.
string write_expression_c() const
write_expression_c
void set_maximum(const Index &, const type &)
void set_descriptives(const Tensor< Descriptives, 1 > &)
void set_item_descriptives(const Index &, const Descriptives &)
Tensor< type, 1 > get_means() const
Returns a single matrix with the means of all scaling neurons.
void set_minimum(const Index &, const type &)
string write_mean_standard_deviation_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
Tensor< string, 1 > write_scalers() const
Returns a vector of strings with the name of the method used for each scaling neuron.
const bool & get_display() const
void set_standard_deviation(const Index &, const type &)
Index get_inputs_number() const
Returns the number of inputs.
string write_standard_deviation_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
string write_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
Returns a string with the expression of the inputs scaling process.
virtual void from_XML(const tinyxml2::XMLDocument &)
Tensor< Scaler, 1 > scalers
Vector of scaling methods for each variable.
void check_range(const Tensor< type, 1 > &) const
bool display
Display warning messages to screen.
bool is_empty() const
Returns true if the number of scaling neurons is zero, and false otherwise.
virtual ~ScalingLayer()
Destructor.
void set()
Sets the scaling layer to be empty.
Tensor< type, 1 > get_minimums() const
Returns a single matrix with the minimums of all scaling neurons.
string write_minimum_maximum_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
Tensor< type, 1 > get_maximums() const
Returns a single matrix with the maximums of all scaling neurons.
string write_no_scaling_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
void set_scalers(const Tensor< Scaler, 1 > &)
Tensor< type, 2 > calculate_outputs(const Tensor< type, 2 > &)
Tensor< Descriptives, 1 > get_descriptives() const
type min_range
min and max range for minmaxscaling
const Tensor< Scaler, 1 > get_scaling_methods() const
Returns the methods used for scaling.
Tensor< Descriptives, 1 > descriptives
Descriptives of input variables.
Tensor< string, 1 > write_scalers_text() const
void set_display(const bool &)
Tensor< type, 1 > get_standard_deviations() const
Returns a single matrix with the standard deviations of all scaling neurons.
void write_XML(tinyxml2::XMLPrinter &) const
void set_mean(const Index &, const type &)
void set_min_max_range(const type &min, const type &max)
This structure contains the simplest Descriptives for a set, variable, etc. It includes :