问题
I have a data in mat file (observations and features) and i want to load it into numpy 2D array. I dont want to convert it into csv first and then load csv into numpy.
回答1:
Use scipy's loadmat (API-docs).
The docs should be sufficient to get you going, but make sure to read the notes.
There is also the io-tutorial with some examples.
来源:https://stackoverflow.com/questions/43952620/how-to-load-and-convert-mat-file-into-numpy-2d-array