Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 1,151 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Logging training results with WFO & NumCores #479801
04/27/20 01:34
04/27/20 01:34
Joined: Mar 2020
Posts: 41
J
jbhunter Offline OP
Newbie
jbhunter  Offline OP
Newbie
J

Joined: Mar 2020
Posts: 41
When I run training with WFO cycles and NumCores=-1 I notice there only appears to be 1 core writing to the _train.log file.

I have an 4 core processer. So when running NumCores=-1 I get 7 parallel threads running zorro instances. The _train.log files looks like the below (showing only lines with "walk").

Is there any way to report all training when running parallel training?

Code
Walk[1] Bar 4194..63082
Walk[8] Bar 82118..63082
Walk[15] Bar 160042..63082
Walk[22] Bar 237966..63082

Last edited by jbhunter; 04/27/20 01:35.
Re: Logging training results with WFO & NumCores [Re: jbhunter] #479805
04/27/20 10:46
04/27/20 10:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Only with a normal training run. The extra cores don't write a log.

Re: Logging training results with WFO & NumCores [Re: jcl] #479827
04/28/20 14:47
04/28/20 14:47
Joined: Mar 2020
Posts: 41
J
jbhunter Offline OP
Newbie
jbhunter  Offline OP
Newbie
J

Joined: Mar 2020
Posts: 41
That's unfortunate... I have a Ryzen 3950x on the way.

On another note. Is there any way to log more than the return from the objective() function in the _train.log files? Such as other trade statistics? I have considered more complex selection of optimized values with a filtering approach documented by myersanalytics.com. This would have to include a parsing and post process effort to write the .fac files.

To get the trade statistics I guess perhaps I could trying writing to a file manually inside the objective function. Maybe this would allow logging anything required and take care of the logging with extra cores. But maybe file locks would be an issue. Not too worried about order if I can get the WFOCycle into the log file.

Thanks for the quick response!

Re: Logging training results with WFO & NumCores [Re: jcl] #479828
04/28/20 15:18
04/28/20 15:18
Joined: Feb 2017
Posts: 1,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,729
Chicago
Originally Posted by jcl
Only with a normal training run. The extra cores don't write a log.
I believe this behavior can be overridden by setting LogNumber, such as LogNumber = Core. Support told me this feature was added as of version 2.23.6.

I'm not sure if this was documented in the manual though.

Re: Logging training results with WFO & NumCores [Re: AndrewAMD] #479833
04/29/20 02:28
04/29/20 02:28
Joined: Mar 2020
Posts: 41
J
jbhunter Offline OP
Newbie
jbhunter  Offline OP
Newbie
J

Joined: Mar 2020
Posts: 41
Excellent. I have not tried testing on my above ideas yet, I will try this first. Thanks for the tip!

I see this in the documentation:

LogNumber
When nonzero, appends the given number to the log and image files generated by the simulation. By setting LogNumber = TotalCycle, different log files or chart images can be generated for any cycle. Set this variable before calling any function that writes something into the log.

Last edited by jbhunter; 04/29/20 02:28.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1