Loading...
Searching...
No Matches
unscaling_layer.h
Go to the documentation of this file.
Definition json.h:85
Definition json.h:23
Layer()=default
const vector< ScalerMethod > & get_scalers() const
Definition unscaling_layer.h:32
void read_JSON_body(const Json *) override
Subclass hook reading the body section of the layer's JSON node.
void set_input_shape(const Shape &) override
Sets the input shape; subclasses override to derive dependent dimensions.
void write_JSON_body(JsonWriter &) const override
Subclass hook writing the body section of the layer's JSON node.
void set_descriptives(const vector< Descriptives > &)
Sets the descriptive statistics (min, max, mean, stddev) used for unscaling each variable.
void set_scalers(const string &)
Sets the same unscaling method for all output variables from its name.
Shape get_output_shape() const override
Returns the output shape; subclasses must implement this to expose their geometry.
Definition unscaling_layer.h:29
string write_expression(const vector< string > &input_names, const vector< string > &output_names) const override
Returns a human-readable mathematical expression for this layer (empty by default).
void set_output_shape(const Shape &) override
Sets the output shape; subclasses override when the output is user-configurable.
VectorR get_minimums() const
Returns the per-variable minimum values from the stored descriptive statistics.
VectorR get_standard_deviations() const
Returns the per-variable standard deviations from the stored descriptive statistics.
Unscaling(const Shape &={0}, const string &="unscaling_layer")
Constructs an unscaling layer for the given number of outputs and label.
VectorR get_means() const
Returns the per-variable means from the stored descriptive statistics.
void set_min_max_range(float min, float max)
Sets the source range expected by min-max unscaling methods.
void set_scalers(const vector< string > &)
Sets the unscaling method for each output variable from a vector of method names.
float * link_states(float *) override
Binds the persistent-state region of the shared buffer to operator views.
const vector< Descriptives > & get_descriptives() const
Definition unscaling_layer.h:31
VectorR get_maximums() const
Returns the per-variable maximum values from the stored descriptive statistics.
void set(Index=0, const string &="unscaling_layer")
Reconfigures the layer with a new number of outputs and label.
Shape get_input_shape() const override
Returns the input shape stored by the layer.
Definition unscaling_layer.h:28
Definition adaptive_moment_estimation.h:14
Device
Execution device selection for OpenNN runtime (auto-detected, CPU or CUDA GPU).
Definition configuration.h:17
Owning raw byte buffer that lives on CPU or CUDA memory, with aligned (re)allocation.
Definition tensor_utilities.h:166
Fixed-capacity small-vector describing tensor dimensions (rank up to MaxRank).
Definition tensor_utilities.h:42
Inverse of ScaleOp: maps normalized outputs back to the original feature range.
Definition operators.h:1035