Watch
1
0
Fork
You've already forked NeuroBook
0
forked from rosh/NeuroBook
NeuroBook/Include/realization/layerdescription.mqh

79 lines
8.5 KiB
MQL5

2025-05-30 16:12:30 +02:00
<EFBFBD><EFBFBD>//+------------------------------------------------------------------+
//| LayerDescription.mqh |
//| Copyright 2021, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021, MetaQuotes Ltd."
#property link "https://www.mql5.com"
//+------------------------------------------------------------------+
//| Connect libraries |
//+------------------------------------------------------------------+
#ifndef Defines
#include "defines.mqh"
#endif
#include <Object.mqh>
//+------------------------------------------------------------------+
//| Class CLayerDescription |
//| Purpose: Class for describing the neural layer to create |
//+------------------------------------------------------------------+
class CLayerDescription : public CObject
{
public:
CLayerDescription(void);
~CLayerDescription(void) {};
//---
int type; // type of neural layer
int count; // number of neurons in the layer
int window; // size of the source data window
int window_out; // size of results window
int step; // step of the source data window
int layers; // number of neural layers
int batch; // size of the weight matrix update batch
ENUM_ACTIVATION_FUNCTION activation; // activation function type
VECTOR activation_params;
// array of activation function parameters
ENUM_OPTIMIZATION optimization; // weight matrix optimization type
TYPE probability; // masking probability, only Dropout
bool Copy(const CLayerDescription *source);
virtual int Type(void) override const { return(defLayerDescription); }
};
//+------------------------------------------------------------------+