Replies: 4 comments 10 replies
-
I think that we should consider creating “from_mat” methods in the data classes, or create a utility called “import_mat” akin to “import_data”. The former could be tailored to each data classes and associated error checking may be helpful. The latter could become unwieldy in trying to support all data classes. Malia, since there are two versions of MATLAB *.mat files currently used in practice as far as I see, supporting imports using scipy or h5py may be better handled within pyttb rather than relying on users to find info in tutorials. |
Beta Was this translation helpful? Give feedback.
-
I don't think there's any need to create a reader function. However, I would like to have guidance. For both sparse and dense tensors. I will experiment with dense soon. I'm not sure how the ordering will translate, and that's the main thing I want to check. |
Beta Was this translation helpful? Give feedback.
-
I agree with Nick about taking on the technical debt of tracking the MATLAB file format in As for the call to |
Beta Was this translation helpful? Give feedback.
-
I have figured out how to do both sparse and dense tensors in mat files, I think. It's not very hard. I would be happy to help with a tutorial of some sort, but I would need a few pointers to get started. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to figure out how to read in the
chicago_crime_2019.mat
file from https://gitlab.com/tensors/tensor_data_chicago_crime.Here's what I have so far:
One thing is that I had to type in the size manually. I guess this is not a numpy array? How can I use the size that was read in?
Beta Was this translation helpful? Give feedback.
All reactions