Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,971 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
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: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

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


Moderated by  Petra 

Gamestudio download | 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