Gamestudio Links
Zorro Links
Newest Posts
MT4/5 - wrong M1 time
by Grat. 06/05/20 08:34
fce for close signal
by Grat. 06/05/20 06:09
TMF - Chandelier
by danatrader. 06/05/20 05:03
The Black Book
by danatrader. 06/05/20 04:29
Multiple CCY
by DdlV. 06/04/20 23:33
Python Bridge Crash
by TipmyPip. 06/04/20 17:40
Z12 Trade Status web page updates
by ESR. 06/04/20 14:19
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (3run, Grat, jenGs, snielsson, 1 invisible), 462 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Frank_Shieh, PBSeven, Hardi01, Giuseppe, AdamWu
18461 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Deep learning framework for regression #477845
08/03/19 14:00
08/03/19 14:00
Joined: Dec 2014
Posts: 171
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 171
Germany
I really want to try my luck with regression instead of simple classification with deep learning. Unfortunately, there isn't any example code available.

The zorro developers gave these frameworks (strategy folder):

DeepLearn.r
DeepLearnH2O.r
DeepLearnKeras.r
DeepLearnMX.r

They are all set up for classification. What would I need to change to use these for regression? I'm especially interested in MXnet.

Re: Deep learning framework for regression [Re: Smon] #477857
08/05/19 15:11
08/05/19 15:11
Joined: Jan 2019
Posts: 73
berlin
L
laz Offline
Junior Member
laz  Offline
Junior Member
L

Joined: Jan 2019
Posts: 73
berlin
In DeepLearn.r you can find the following:
Code
neural.train = function(model,XY) 
{
  XY <- as.matrix(XY)
  X <- XY[,-ncol(XY)]
  Y <- XY[,ncol(XY)]
  Y <- ifelse(Y > 0,1,0)
  Models[[model]] <<- sae.dnn.train(X,Y,
      hidden = c(10,30,10), 
      activationfun = "tanh", 
      learningrate = 0.5, 
      momentum = 0.5, 
      learningrate_scale = 1.0, 
      output = "sigm", 
      sae_output = "linear", 
      numepochs = 100, 
      batchsize = 100,
      hidden_dropout = 0, 
      visible_dropout = 0)
}

Start from here, Y <- ifelse(Y > 0,1,0) changes the target from trade returns to a 0/1 signal, you need to remove that...

Check sae.dnn.train, how can one do regression with it, test every step with a minimal example and data you know well...

for example - do sae.dnn.train regression on iris data wink

Find a metric, RMSE, MAE, Rsquared, read about them - use them - or write your own...

It is possible but it is a long way, i have done all that but i have connected the caret framework to zorro. Now i can do do both,

classification or regression with all caret models.

Re: Deep learning framework for regression [Re: laz] #477973
08/20/19 11:28
08/20/19 11:28
Joined: Dec 2014
Posts: 171
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 171
Germany
Thank you, I will check this out!


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