거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

GRNN Neural Network Class - MetaTrader 5용 라이브러리

조회수:
8649
평가:
(45)
게시됨:
2012.12.25 11:31
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The CNetGRNN class realizes a generalized regression neural network (General Regression Neural Network - GRNN).

Creation of the network is declared to be the class parametric constructor.

CNetGRNN *net=new CNetGRNN(input vector size, output vector size);

Learning network is provided by calling the Learn method (the number of learning patterns, input data array, output data array, the number of learning cycles, the maximum learning error).

Input and output learning data are located in one-dimensional arrays vector by vector. The learning process is limited either by the number of learning epochs or admissible error.

The Learn method returns the following values:

  • 0 - network learning is completed and learning result can be checked through the class variable: mse – learning error, epoch – number of accomplished learning cycles;
  • -4 - not enough memory. 

The Calculate method (input vector array, network response array) is used to get response network.

Save (open file handle with FILE_WRITE and FILE_BIN flags) and Load (open file handle with FILE_READ and FILE_BIN flags) methods are intended for saving the network to a file and loading the network from the file respectively. Network topology, learning errors and array weights are saved to the file. If parameters of the loaded network topology differ from the parameters of the established network topology, the network will not be loaded and the Load method will return false.

Using of the class is shown in the attached specimens: Test_GRNN_XOR - learning network function "excluding OR", Test_GRNN_MUL_ADD - learning network multiplication and addition of integers.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/1324

PNN Neural Network Class PNN Neural Network Class

The class realizes the probabilistic neural network (Probabilistic Neural Network - PNN)

ATR_MA_Oscillator ATR_MA_Oscillator

ATR MA Oscillator is the oscillator drawn on the basis of the difference between the ATR oscillator and its signal line.

iSarX4 iSarX4

Four parabolic indicators at one time!

Aggressiveness Aggressiveness

The Aggressiveness indicator displays how many points the instrument runs on the average for one candlestick