Hi, Does anyone has any idea why this is happening during the NEURAL testing after training ? Getting "subscript out of bounds" from the R script when there are multiple assets or NumWFOCycles >60. If I remove 1 of the 2 asset, or set NumWFOCycles=50 , this issue is not happening.
Just want to add that the error is in the debug-view log when testing (attached previour post). Input/Output to R looks normal in this file.
The traininig looks like might be incomplete from the screenshot attached, as the purple bar didn't go to the end,and 57 runs instead of 60, something might be happening during training, that actually causes the error when testing.
But there are no errors during training at all...
Attaching a screenshot, the debug-view training log (the previous one was for testing) and the train log again if can help
Last edited by vinsom; 05/04/1920:59.
Re: Help with Neural predict -> "subscript out of bounds" error
[Re: vinsom]
#477036 05/05/1906:2605/05/1906:26
Hi, you have day bars and only 3 years, so thats far too few bars for 60 wfo cycles. I think you cannot train a cycle that has only a few bars, maybe you get no result for some cycles and thats the reason of the error. Try 20 years instead of 3, or 10 wfo cycles instead of 60.
Re: Help with Neural predict -> "subscript out of bounds" error
[Re: Petra]
#477039 05/05/1907:2605/05/1907:26
Yes I thought so, but then if remove either one of the 2 asset, then there are no errors and training complete successfully and testing afterwards has no issue
Re: Help with Neural predict -> "subscript out of bounds" error
[Re: vinsom]
#477040 05/05/1910:3505/05/1910:35
Thats exactly the problem, the first asset determines the bars, so you probably have some cycles with no candles of the second asset where they dont overlap. Especially with cryptos that have lots of gaps anyway.
Re: Help with Neural predict -> "subscript out of bounds" error
[Re: Petra]
#477047 05/05/1921:4705/05/1921:47
I think the issue in training has been fixed with adding array.layout = "rowmajor" in the training function of the R script. There is still a warning in the predict function as from the log below, but not sure how to add the same code to the predict function. Anyone has any idea ?
Thanks
log: [27312] <2> ExecuteCode: in >>> Y <- neural.predict(2,X) [27312] <2> ExecuteCode: out <<< arning message: [27312] In mx.model.select.layout.predict(X, model) : [27312] Auto detect layout of input matrix, use rowmajor..