My data is stored in classes in MATLAB which contain large arrays but want to work with that data in python for training machine learning. From what I can tell, when moving data between the two, the value is transferred and so the array is copied in memory. Then converting the arrays into numpy arrays creates a further copy in memory. How can I avoid creating so copies of data as much as possible.
I have not yet implemented the python code as it will be pointless if I can't transfer it easily.