Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
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
2 registered members (ozgur, TipmyPip), 722 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
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 | 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