![]() |
Neuron Net
|
The main class of the neural network. Contains basic methods for the functioning of a neural network. More...
Public Member Functions | |
CNet (CArrayObj *Description) | |
Constructor. More... | |
~CNet (void) | |
Destructor. More... | |
bool | feedForward (CArrayDouble *inputVals) |
Feed Forward method. More... | |
void | backProp (CArrayDouble *targetVals) |
Back propagation method. More... | |
void | getResults (CArrayDouble *&resultVals) |
Method to get results of feed forward process. More... | |
double | getRecentAverageError () |
Method to check quality of study. More... | |
bool | Save (string file_name, double error, double undefine, double forecast, datetime time, bool common=true) |
Save method. More... | |
bool | Load (string file_name, double &error, double &undefine, double &forecast, datetime &time, bool common=true) |
Load method. More... | |
virtual int | Type (void) const |
Identificator of class. More... | |
Static Public Attributes | |
static double | recentAverageSmoothingFactor =10000.0 |
Smoothing factor of average error. More... | |
Protected Member Functions | |
void | backPropOCL (CArrayDouble *targetVals) |
Back propagation method for GPU calculation. More... | |
The main class of the neural network. Contains basic methods for the functioning of a neural network.
Detailed description on the link.
Definition at line 1360 of file NeuroNet.mqh.
CNet::CNet | ( | CArrayObj * | Description | ) |
Constructor.
Definition at line 1391 of file NeuroNet.mqh.
CNet::~CNet | ( | void | ) |
Destructor.
Definition at line 2762 of file NeuroNet.mqh.
void CNet::backProp | ( | CArrayDouble * | targetVals | ) |
Back propagation method.
[in] | targetVals | Target values |
Definition at line 1745 of file NeuroNet.mqh.
|
protected |
Back propagation method for GPU calculation.
[in] | targetVals | Target values |
Definition at line 1853 of file NeuroNet.mqh.
bool CNet::feedForward | ( | CArrayDouble * | inputVals | ) |
Feed Forward method.
[in] | prevLayer | Pointer to previos layer. |
Definition at line 1640 of file NeuroNet.mqh.
|
inline |
Method to check quality of study.
Definition at line 1370 of file NeuroNet.mqh.
void CNet::getResults | ( | CArrayDouble *& | resultVals | ) |
Method to get results of feed forward process.
[out] | resultVals | Array of result values |
Definition at line 1904 of file NeuroNet.mqh.
bool CNet::Load | ( | string | file_name, |
double & | error, | ||
double & | undefine, | ||
double & | forecast, | ||
datetime & | time, | ||
bool | common = true |
||
) |
Load method.
[in] | file_name | File name to save |
[out] | error | Average error |
[out] | undefine | Undefined percent |
[out] | Foecast | percent |
[out] | time | Last study time |
[in] | common | Common flag |
Definition at line 1982 of file NeuroNet.mqh.
bool CNet::Save | ( | string | file_name, |
double | error, | ||
double | undefine, | ||
double | forecast, | ||
datetime | time, | ||
bool | common = true |
||
) |
Save method.
[in] | file_name | File name to save |
[in] | error | Average error |
[in] | undefine | Undefined percent |
[in] | Foecast | percent |
[in] | time | Last study time |
[in] | common | Common flag |
Definition at line 1957 of file NeuroNet.mqh.
|
inlinevirtual |
|
static |
Smoothing factor of average error.
Definition at line 1376 of file NeuroNet.mqh.