Discussion of article "Neural networks made easy (Part 31): Evolutionary algorithms" - page 2

 

Allow me to start by saying thank you Dmitriy for this informative series.

Can someone please help me understand this error

 

10:40:19.206 Core 1 2019.01.01 00:00:00   USDJPY#_PERIOD_H1_Evolution.nnw

10:40:19.206 Core 1 tester stopped because OnInit returns non-zero code 1

10:40:19.207 Core 1 disconnected

10:40:19.207 Core 1 connection closed


 

Problem identified.

   float temp1, temp2;
   if(!StudyNet.Load(FileName + ".nnw", dError, temp1, temp2, dtStudied, true)){
   Print("StudyNet");
      return INIT_FAILED;}

This is the reason why the Onint function always fails

 
Kekeletso Mofokeng #:

Allow me to start by saying thank you Dmitriy for this informative series.

Can someone please help me understand this error

 

10:40:19.206 Core 1 2019.01.01 00:00:00   USDJPY#_PERIOD_H1_Evolution.nnw

10:40:19.206 Core 1 tester stopped because OnInit returns non-zero code 1

10:40:19.207 Core 1 disconnected

10:40:19.207 Core 1 connection closed


The problem is that you need to locate your .nnw file into the Common/files folder so the tester can find it.
 

Dear  Dmitriy,


let me thank you for your work very much, it is appriciated!


I'd like to ask anyone for help. When I try to backtest the Evolution-test-mq5 EA, I get an error already mentioned above:  tester stopped because OnInit returns non-zero code 1.

I have moved the .nnw file to the Agent directory (C:\Users\...\MetaQuotes\Tester\D0E8209G77C3CF47AD8BA550E52FF078\Agent-127.0.0.1-3000\MQL5\Files), but that did not help. 

 The part of the code returning the error is in the picture below (just like the one in a comment above).

        float temp1, temp2;
   if(!StudyNet.Load(FileName + ".nnw", dError, temp1, temp2, dtStudied, true)){
   Print("StudyNet");
      return INIT_FAILED;}

 Can anyone give me an advice, please? 

Thank you

 
jirivokurka #:

Dear  Dmitriy,


let me thank you for your work very much, it is appriciated!


I'd like to ask anyone for help. When I try to backtest the Evolution-test-mq5 EA, I get an error already mentioned above:  tester stopped because OnInit returns non-zero code 1.

I have moved the .nnw file to the Agent directory (C:\Users\...\MetaQuotes\Tester\D0E8209G77C3CF47AD8BA550E52FF078\Agent-127.0.0.1-3000\MQL5\Files), but that did not help. 

 The part of the code returning the error is in the picture below (just like the one in a comment above).

 Can anyone give me an advice, please? 

Thank you

Hi,

You must to move .nnw file to "..\Common\Files" directory.

 

Hello  Dmitriy,

thank you for your quick respond. I have moved the files into that folder, but unfortunately, the EA did not run well neither. Instead, I got an error:



2023.02.22 18:17:24.577 2018.02.01 00:00:00   OpenCL kernel create failed. Error code=5107

2023.02.22 18:17:24.577 2018.02.01 00:00:00   Error of create kernell: 5107

2023.02.22 18:17:24.608 tester stopped because OnInit returns non-zero code 1



Can anyone help please?
 
Ivan Butko #:

I tried, I set from 5 to 10, and tried one. Same error:

2022.10.22 01:42:08.768 Evolution (EURUSD,H1) Error of execution kernel SoftMax FeedForward: 5109


I noticed something, maybe because of this: when saving a model, the following inscriptions appear on the left side of the window: "Error of loading model, Select file, error id: 5004". Maybe it somehow affects.


Also: the created file should weigh 16 megabytes! It is unusual to see such sizes in mql.




UPD

I tried it on my laptop, it doesn't want to teach either:

2022.10.22 13:07:36.028 Evolution (EURUSD,H1) EURUSD_PERIOD_H1_Evolution.nnw
2022.10.22 13:07:36.028 Evolution (EURUSD,H1) OpenCL: GPU device 'Intel(R) UHD Graphics' selected
2022.10.22 13:07:37.567 Evolution (EURUSD,H1) 9 undeleted objects left
2022.10.22 13:07:37.567 Evolution (EURUSD,H1) 1 object of type CLayer left
2022.10.22 13:07:37.567 Evolution (EURUSD,H1) 1 object of type CNeuronBaseOCL left
2022.10.22 13:07:37.567 Evolution (EURUSD,H1) 7 objects of type CBufferFloat left
2022.10.22 13:07:37.567 Evolution (EURUSD,H1) 2688 bytes of leaked memory

In log:

2022.10.22 13:07:34.716 Experts expert Evolution (EURUSD,H1) loaded successfully
2022.10.22 13:07:37.568 Experts initialising of Evolution (EURUSD,H1) failed with code 1
2022.10.22 13:07:37.580 Experts expert Evolution (EURUSD,H1) removed


same problem... do you find the solution?