forked from animatedread/Warrior_EA
Same pass as 0b06f8e, applied file by file: comment runs of 4+ lines compressed
to their leading topic sentences, capped at 4 lines, whole sentences only.
Warning sentences (NEVER / MUST / trap / would-have) survive the budget.
Every file was checked the same way before committing: the list of non-comment
lines is byte-identical to HEAD, and braces balance. No code was touched.
Panel/, Enumerations/ and the already-terse System headers needed little or
nothing - PooledGate, TradeChecks, BinomialStats and Random came through with
no blocks over the threshold at all.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
37 lines
1.7 KiB
MQL5
37 lines
1.7 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;
|
|
//--- Batch-normalization layers only (defNeuronBatchNorm): the EMA window length over which the
|
|
//--- running mean/variance are estimated. Ignored by every other layer type.
|
|
int batch;
|
|
ENUM_ACTIVATION activation;
|
|
ENUM_OPTIMIZATION optimization;
|
|
};
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
CLayerDescription::CLayerDescription(void) : type(defNeuron),
|
|
count(0),
|
|
window(1),
|
|
step(1),
|
|
batch(1), // 1 == normalization disabled; only batch-norm descriptors ever raise it
|
|
activation(TANH),
|
|
optimization(SGD)
|
|
{}
|