02-11-2024 11:12 AM
This file is different from the first one. And it can be worked independently. there is 1000 example data in file data array. Maybe you can run it and put some probes. Of course, you do not have to do it. But I don't know how can ı explain much more. I am sorry for taking your time. "I thought this was the second file I sent. I had sent the same file 😞 "
02-11-2024 07:34 PM
Your code is still one huge mess. It would help if you could reduce it to a much smaller problem from troubleshooting the algorithms.
For example using a small 20x20x20 cube and a small set of "other data". Make sure the result is correct. After that I can play with some refactoring.
Only once we have that worked out, we can apply it to the gigantic problem.
02-12-2024 03:58 AM
ok. if you change the "0.1" ramp delta value which is shown image to 1 (11X27X27x64) or 2 (6X14X14X64) you will get less structure.
on the other hand, if you put this for loop for given data you can get whatever you want size data( ex. 200).
02-12-2024 10:10 AM - edited 02-12-2024 10:44 AM
I am fully aware how I can reduce the data size in your code, but can you guarantee that your code is correct and produces the correct result?
You need to make a simplified version with synthetic data where we can be confident that the result is verifiably correct.
I cannot debug a hairball of a 4D array with mostly redundant elements.
@Yakup1971 wrote:
on the other hand, if you put this for loop for given data you can get whatever you want size data( ex. 200).
And no, a FOR loop is not the correct way to take a array subset and having the blue terminal inside the loop is only reasonable if we must assume that the values change during the loop iterations. Not the case here.
Here are a few ways to reduce the number of rows in a 2D array:
(They are not 100% equivalent, because the top two will create an array padded with zeroes if you select more rows than exist in the input array. This is only reasonable in rare cases. The next two will only output rows that are actually available. If you really need padding to the full size, use "reshape" as shown at the bottom)