Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 1,098 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 204
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 204
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 204
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 204
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