How to take transpose of a tall array ?

I have a large training data set that is being used for a machine learning problem. In order to tackle the "out of memory" issue that I got on matlab while running the code, I tried using tall arrays. But I need to find the transpose of the array and that functionality is not available. Can someone please suggest an alternate method or guide me with a workaround method to find the transpose of the array ?

6 commentaires

Guillaume
Guillaume le 19 Juin 2018
Why do you need to take the transpose of the tall array?
Fundamentally, the two are incompatible. There should be no need for transpose.
could you send me your code, so that I can understand your problem better.
for me is for example
a=1:10;
b=a';
Guillaume
Guillaume le 19 Juin 2018
@Sayyed,
your example is not a tall array. The whole point of tall arrays is that you only fetch a limited number of rows at a time. This is incompatible with a transpose operation which would need all the rows.
Hossein Amini
Hossein Amini le 15 Juil 2019
Does not support Tall array. For having training data set it is necessary to have table in row direction thus it should be transposed.
KSSV
KSSV le 16 Juil 2019
How is your data? Is it on some external file? You want to use the data for training NN?
Guillaume
Guillaume le 16 Juil 2019
"For having training data set it is necessary to have table in row direction thus it should be transposed"
I don't know what a table in row direction is. In any case, typically for training a NN you'd pass rows of a table so there would be no need for any transpose.
And as I said originally, you will never be able to transpose a tall array. Transpose requires storing all the rows of the tall arrays, which is of course what tall arrays are designed not to do.

Connectez-vous pour commenter.

Réponses (0)

Commenté :

le 16 Juil 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by