Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (howardR, AndrewAMD, EternallyCurious, Petra, 1 invisible), 791 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
DeepLearn script #486364
08/08/22 08:36
08/08/22 08:36
Joined: Aug 2022
Posts: 12
N
nerdkorea Offline OP
Newbie
nerdkorea  Offline OP
Newbie
N

Joined: Aug 2022
Posts: 12
The deeplearn script seems broken. It works on the default setting (#define DEEPNET) but when I uncomment #define KERAS and comment the others out and click on Train I get this [Linked Image]
How to fix it?

Re: DeepLearn script [Re: nerdkorea] #486365
08/08/22 08:50
08/08/22 08:50
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt

Re: DeepLearn script [Re: jcl] #486366
08/08/22 08:54
08/08/22 08:54
Joined: Aug 2022
Posts: 12
N
nerdkorea Offline OP
Newbie
nerdkorea  Offline OP
Newbie
N

Joined: Aug 2022
Posts: 12
It is installed, when its not installed it says init 0 instead of doing this

Re: DeepLearn script [Re: nerdkorea] #486369
08/08/22 11:42
08/08/22 11:42
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, next step is finding out what went wrong. Use RStudio to run some keras functions, for instance Model <- keras_model_sequential(). Does it create a model? Can you set up layers?


Re: DeepLearn script [Re: jcl] #486370
08/08/22 11:50
08/08/22 11:50
Joined: Aug 2022
Posts: 12
N
nerdkorea Offline OP
Newbie
nerdkorea  Offline OP
Newbie
N

Joined: Aug 2022
Posts: 12
I get this result.

> Model <- keras_model_sequential()
Loaded Tensorflow version 2.9.1
2022-08-08 13:46:56.508479: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-08-08 13:46:56.955928: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5965 MB memory: -> device: 0, name: NVIDIA GeForce RTX 2080, pci bus id: 0000:01:00.0, compute capability: 7.5
> Model
Model: <no summary available, model was not built>
>

I am completely new to R and RStudio so I'm not sure how to setup layers. I come from c# dev

Re: DeepLearn script [Re: nerdkorea] #486372
08/08/22 12:01
08/08/22 12:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I don't know the error message, but it looks as if Keras was installed for CPU and Tensorflow for GPU, so they don't work together.

For the layers, use this command:

Model %>%
layer_dense(units=30,activation='relu',input_shape = c(ncol(X))) %>%
layer_dropout(rate = 0.2) %>%
layer_dense(units = 1, activation = 'sigmoid')

You can copy it from the keras train function on the manual page, and also the subsequent compile command. But I suppose it won't work when the model was not built. If so, deinstall Keras and Tensorflow and install it again. Make sure that both are installed for CPU, not GPU.

Re: DeepLearn script [Re: jcl] #486373
08/08/22 12:26
08/08/22 12:26
Joined: Aug 2022
Posts: 12
N
nerdkorea Offline OP
Newbie
nerdkorea  Offline OP
Newbie
N

Joined: Aug 2022
Posts: 12
[Linked Image]
hmm well it does work if I do it like this. Reinstalled completely still the same problem.
can you verify that the keras example works on your machine? (and if it works, which version of python and R?

the RTest works fine btw.

edit: the code from the manual (https://zorro-project.com/manual/en/deeplearning.htm) also doesn't work for me.

Last edited by nerdkorea; 08/08/22 12:38.
Re: DeepLearn script [Re: nerdkorea] #486374
08/08/22 12:45
08/08/22 12:45
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
All examples work. They are in our test suite that we always run prior to any release. But it's certainly not the newest Keras version.

We'll check in the next days if there are issues with the newest versions of Keras and Tensorflow. Please stay tuned, I'll post here when we find something.

Re: DeepLearn script [Re: jcl] #486375
08/08/22 12:50
08/08/22 12:50
Joined: Aug 2022
Posts: 12
N
nerdkorea Offline OP
Newbie
nerdkorea  Offline OP
Newbie
N

Joined: Aug 2022
Posts: 12
Something I also noticed is that zorro works as 32bit and uses the 64bit exe of RTerm.exe . not sure if that would cause any issues.
Also my gpu did start running and then it supposedly crashes. Out of memory maybe?

Re: DeepLearn script [Re: nerdkorea] #486376
08/08/22 13:03
08/08/22 13:03
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A GPU can normally not run out of memory. If it does, it's a hardware issue.

64 bit RTerm is ok and works with all Zorro versions.

Page 1 of 3 1 2 3

Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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