openGPMP
Open Source Mathematics Package
|
Primary Multi-Layer Perceptron Class. More...
#include <mlp_net.hpp>
Public Member Functions | |
PrimaryMLP (int64_t nl, int64_t npl[]) | |
~PrimaryMLP () | |
int64_t | train (const char *fnames) |
int64_t | test (const char *fname) |
int64_t | evaluate () |
void | run (const char *fname, const int64_t &max_iters) |
Public Attributes | |
long double | _Eta |
long double | _Alpha |
long double | _Gain |
long double | _AvgTestError |
Private Member Functions | |
void | rand_init () |
int64_t | rand_int (int64_t low, int64_t hi) |
long double | rand_real (long double low, long double hi) |
void | set_signal_in (long double *input) |
void | get_signal_out (long double *output) |
void | weights_save () |
void | weights_rand () |
void | weights_restore () |
void | weights_adjust () |
void | prop_signal () |
void | output_err (long double *target) |
void | back_prop_err () |
void | simulate (long double *input, long double *output, long double *target, bool training) |
Private Attributes | |
int64_t | num_layers |
layer * | layer_ptr |
long double | _MSE |
Mean Squared Error. More... | |
long double | _MAE |
Mean Absolute Error. More... | |
Primary Multi-Layer Perceptron Class.
Definition at line 87 of file mlp_net.hpp.
gpmp::ml::PrimaryMLP::PrimaryMLP | ( | int64_t | nl, |
int64_t | npl[] | ||
) |
Definition at line 64 of file mlp_network.cpp.
References gpmp::ml::neuron::err, layer_ptr, gpmp::ml::layer::neuron_ptr, num_layers, gpmp::ml::layer::num_neurons, gpmp::ml::neuron::sortir, gpmp::ml::neuron::wt, gpmp::ml::neuron::wt_last, and gpmp::ml::neuron::wt_saved.
gpmp::ml::PrimaryMLP::~PrimaryMLP | ( | ) |
Definition at line 115 of file mlp_network.cpp.
|
private |
int64_t gpmp::ml::PrimaryMLP::evaluate | ( | ) |
|
private |
|
private |
|
private |
|
private |
Definition at line 48 of file mlp_network.cpp.
|
private |
Definition at line 54 of file mlp_network.cpp.
|
private |
Definition at line 59 of file mlp_network.cpp.
void gpmp::ml::PrimaryMLP::run | ( | const char * | fname, |
const int64_t & | max_iters | ||
) |
|
private |
|
private |
int64_t gpmp::ml::PrimaryMLP::test | ( | const char * | fname | ) |
int64_t gpmp::ml::PrimaryMLP::train | ( | const char * | fnames | ) |
|
private |
|
private |
|
private |
|
private |
long double gpmp::ml::PrimaryMLP::_Alpha |
Definition at line 129 of file mlp_net.hpp.
long double gpmp::ml::PrimaryMLP::_AvgTestError |
Definition at line 131 of file mlp_net.hpp.
long double gpmp::ml::PrimaryMLP::_Eta |
Definition at line 128 of file mlp_net.hpp.
long double gpmp::ml::PrimaryMLP::_Gain |
Definition at line 130 of file mlp_net.hpp.
|
private |
Mean Absolute Error.
Definition at line 104 of file mlp_net.hpp.
|
private |
Mean Squared Error.
Definition at line 100 of file mlp_net.hpp.
|
private |
Definition at line 96 of file mlp_net.hpp.
Referenced by PrimaryMLP().
|
private |
Definition at line 95 of file mlp_net.hpp.
Referenced by PrimaryMLP().