33 行
1.4 KiB
MQL5
33 行
1.4 KiB
MQL5
|
|
//+------------------------------------------------------------------+
|
||
|
|
//| LayerDescription.mqh|
|
||
|
|
//| AnimateDread |
|
||
|
|
//| https://www.mql5.com |
|
||
|
|
//+------------------------------------------------------------------+
|
||
|
|
//| CLayerDescription - plain topology-spec data holder consumed by |
|
||
|
|
//| CNet's topology-build code (AI\Network.mqh). Self-contained (no |
|
||
|
|
//| class-type dependencies, just enum/int defaults). Extracted |
|
||
|
|
//| verbatim (SOLID cleanup) - no logic changes. |
|
||
|
|
//+------------------------------------------------------------------+
|
||
|
|
class CLayerDescription : public CObject
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CLayerDescription(void);
|
||
|
|
~CLayerDescription(void) {};
|
||
|
|
//---
|
||
|
|
int type;
|
||
|
|
int count;
|
||
|
|
int window;
|
||
|
|
int step;
|
||
|
|
ENUM_ACTIVATION activation;
|
||
|
|
ENUM_OPTIMIZATION optimization;
|
||
|
|
};
|
||
|
|
//+------------------------------------------------------------------+
|
||
|
|
//| |
|
||
|
|
//+------------------------------------------------------------------+
|
||
|
|
CLayerDescription::CLayerDescription(void) : type(defNeuron),
|
||
|
|
count(0),
|
||
|
|
window(1),
|
||
|
|
step(1),
|
||
|
|
activation(TANH),
|
||
|
|
optimization(SGD)
|
||
|
|
{}
|