4 registered members (dBc, clonman, TipmyPip, 1 invisible),
18,936
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Deeplearning Script
#488111
01/24/24 16:22
01/24/24 16:22
|
Joined: Jan 2024
Posts: 2
wolfi
OP
Guest
|
OP
Guest
Joined: Jan 2024
Posts: 2
|
Tried to get working the Deeplearning Script - only successful in small parts:
Installation: win 10, zorro 2.56, R 4.3.2, Python (version 3.11.5 or 6) within R, as alternative as system installation or Anaconda3, Keras always as R package (version 2.13), Caret, Deepnet
My Experience: - Got working Deepnet from inside R ("neural.test()") and from Zorro as expected. Had to move set.seed() from neural.init() to neural.train() to get identical results from one to multicore training. - Keras/Tensorflow runs within R using neural.train(). Set.seed() same as above. Had to change predict_proba() to predict(), function was removed in Keras version2.6. No chance to get it working from Zorro, used some sink() calls in neural.save(). Looks like function call Rx( neural.save....) does not start. R is still running. No idea what is wrong, does neural.train() not return properly? - Installing MxNet impossible, URL does not exist anymore. Project has "retired"..... when you are searching for information of this project.
Due to the fact, that deepnet is limited to 3 layers (known issue, no change since years - no maintenance), MxNet not existing anymore at least for R, i would like to get working Keras/Tensorflow. In the forum i could see some comments about this problem (Keras), but no clear advise how to overcome the problem. Is it a problem of my software installation or has Keras changed so much, that the script does not work anymore (in contradiction to the working neural.test()). Is there an interference between Keras and the R-Bridge?
So any comment would be appreciated.
|
|
|
Re: Deeplearning Script
[Re: wolfi]
#488848
08/06/25 10:03
08/06/25 10:03
|
Joined: Aug 2021
Posts: 242
Lapsa
Member
|
Member
Joined: Aug 2021
Posts: 242
|
but all exit after the neural.training silently. The next step neural.save cannot open - r is not running anymore. still actual as soon as I add `keras_model_sequential()` (and nothing else, keras installed correctly, everything runs smoothly via Rterm) to neural.train() function - Zorro fails to call neural.save()
|
|
|
Re: Deeplearning Script
[Re: wolfi]
#488849
08/06/25 13:27
08/06/25 13:27
|
Joined: Aug 2021
Posts: 242
Lapsa
Member
|
Member
Joined: Aug 2021
Posts: 242
|
and I think it's the same issue as mentioned in documentation: Numpy has issues with embedded Python. This also affects all libraries that use numpy, f.i. scipy, pandas, keras, tensorflow. Although numpy release 1.16.3 or above does start, it does not shut down properly, so you can only run it once with the Python bridge. Afterwards Zorro must be closed and restarted. Numpy was also reported to be not compatible with the R bridge, so r.h and contract.c cannot be included in numpy scripts. For overcoming all those issues, do not run numpy functions directly, but call the Python interpreter as in the example below.
Last edited by Lapsa; 08/06/25 13:27.
|
|
|
|