0

I am currently working on machine learning, and as so I have an array in which the first column is the data and the second column is the label. Data was originally a cell array from Matlab (Not sure if that is important). [My Array of arrays] https://i.sstatic.net/JFpWO.png

To make sure that everything is as it should be I would like to extract one of the arrays in index 0 and check its dimensions with the numpy.shape function. Currently, if I try that I just get the shape of the bigger array IE. (394,2)

Any ideas?

1 Answer 1

0

There are different ways.: Try..

arr[:,1,:]

or

arr[:,1]

or

[a[1] for a in arr]
Sign up to request clarification or add additional context in comments.

1 Comment

Yes i know that the bigger array is 394 rows and two columns. My question is how to extract the array from within the bigger array so I can check the shape of that array :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.