10#ifndef UNSCALINGLAYER_H
11#define UNSCALINGLAYER_H
26#include "statistics.h"
27#include "opennn_strings.h"
77 void set(
const Index&);
78 void set(
const Tensor<Descriptives, 1>&);
79 void set(
const Tensor<Descriptives, 1>&,
const Tensor<Scaler, 1>&);
83 void set_inputs_number(
const Index&);
84 void set_neurons_number(
const Index&);
96 void set_mean(
const Index&,
const type&);
128 string write_expression(
const Tensor<string, 1>&,
const Tensor<string, 1>&)
const;
This abstract class represents the concept of a layer of neurons in OpenNN.
This class represents a layer of unscaling neurons.
string write_expression_c() const
void set_maximum(const Index &, const type &)
void set_descriptives(const Tensor< Descriptives, 1 > &)
void set_item_descriptives(const Index &, const Descriptives &)
void set_minimum(const Index &, const type &)
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_expression(const Tensor< string, 1 > &, const Tensor< string, 1 > &) const
Returns a string with the expression of the inputs scaling process.
void from_XML(const tinyxml2::XMLDocument &)
virtual void set_default()
const Tensor< Scaler, 1 > get_unscaling_method() const
string write_expression_python() const
Tensor< Scaler, 1 > scalers
Unscaling method for the output variables.
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 unscaling neurons is zero, and false otherwise.
void set()
Sets the unscaling layer to be empty.
Tensor< type, 1 > get_minimums() const
Tensor< type, 1 > get_maximums() const
virtual ~UnscalingLayer()
Destructor.
Tensor< string, 1 > write_unscaling_method_text() const
void set_scalers(const Tensor< Scaler, 1 > &)
Tensor< type, 2 > calculate_outputs(const Tensor< type, 2 > &)
Index get_neurons_number() const
Returns the number of unscaling neurons in this layer.
Tensor< Descriptives, 1 > get_descriptives() const
UnscalingLayer()
Default constructor.
type min_range
min and max range for unscaling
Tensor< Descriptives, 1 > descriptives
Descriptives of output variables.
void set_display(const bool &)
void write_XML(tinyxml2::XMLPrinter &) const
void set_mean(const Index &, const type &)
void set_min_max_range(const type min, const type max)
Tensor< string, 1 > write_unscaling_methods() const
Returns a vector of strings with the name of the method used for each unscaling neuron.
This structure contains the simplest Descriptives for a set, variable, etc.