9#include <trg/grl/dataobjects/GRLMLP.h>
22 unsigned short targets,
23 const std::vector<float>& outputscale
34 unsigned n_weights = 0;
unsigned get_number_of_layers() const
get number of layers
std::vector< float > m_weights
Weights of the network.
GRLMLP()
default constructor.
unsigned short m_target_vars
output variables: 1: z, 2: theta, 3: (z, theta)
std::vector< unsigned short > m_n_nodes
Number of nodes in each layer, not including bias nodes.
unsigned n_weights_cal() const
calculate number of weights from number of nodes
unsigned n_bias_cal() const
calculate number of weights from number of nodes
std::vector< float > m_output_scale
Output[i] of the MLP is scaled from [-1, 1] to [outputScale[2i], outputScale[2i+1]].
std::vector< float > m_bias
bias of the network.
bool m_trained
Indicator whether the weights are just default values or have been set by some trainer (set to true w...
Abstract base class for different kinds of events.