Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, TipmyPip, Quad, AndrewAMD), 898 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
+BALANCED machine learning option #475944
01/14/19 22:19
01/14/19 22:19
Joined: Jan 2019
Posts: 1
Berlin
N
Nialler Offline OP
Guest
Nialler  Offline OP
Guest
N

Joined: Jan 2019
Posts: 1
Berlin
Hi,

I'm using the +BALANCED train option and I'm wondering what Zorro Trader is doing exactly to balance the data. I've read in the documentation that its used to "enforce the same number of positive and negative target values by replication" and "trades used for training should result in about 50% wins and 50% losses, and negative and positive Objective values should be equally distributed", but I'm unsure how it picks which of the objective values to replicate.

The selection does not seem to be random, and the same target values get duplicated no matter how many samples exist.

Does anyone have any insight into what the Zorro +BALANCED option is doing under the hood?

The example I'm using is from the Financial Hacker example:

adviseLong(SIGNALS+BALANCED,0,
change(1),change(2),change(3),change(4),
range(1),range(2),range(3),range(4));

Re: +BALANCED machine learning option [Re: Nialler] #476019
01/18/19 07:37
01/18/19 07:37
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
The algorithm attempts to keep wins and losses in a similar range. If there are more wins at any point, then the next losses are repeated, and vice versa. If you have 500 wins and 1 loss, then it is repeated 500 times.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1