Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 396 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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