Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
NEURAL and multiple objectives - what's the easiest way? #479508
04/03/20 10:16
04/03/20 10:16
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
I want to trigger trades with two predicted values.

The manual states:

Quote

For training multiple objectives with the NEURAL method, pass the further objectives as Signal parameters to the advise function. For debugging, use the R sink function for printing R output to a file.


Now it's super clear how to pass the second objective into the R session, but it seems, there is no convenient way to get the 2-dimensional prediction back to Zorro through the advise functions.

I'm seeing three options here, how I must alter the neural function:

a) change the type of the function to a 2-dim array -> probably causing all kinds of new problems
b) declare a global array in which the neural function writes its predictions.
c) training two different models, one with adviseLong and one with adviseShort (I'd like to avoid that because it will use double the time to train a single model)

What's the easiest way? Is there a better way?

Re: NEURAL and multiple objectives - what's the easiest way? [Re: Smon] #479515
04/03/20 11:40
04/03/20 11:40
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
The easiest way is c). For the other ways, call advise with multiple objectives for training only. For test and trading, use a separate prediction function that loads the current model and returns the prediction array as a vector from R.

Re: NEURAL and multiple objectives - what's the easiest way? [Re: Smon] #479516
04/03/20 13:03
04/03/20 13:03
Joined: Dec 2014
Posts: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
Germany
Thanks!


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1