Last answered:

26 Sept 2022

Posted on:

21 Sept 2022

0

Resolved: a_train.shape doesn't work

Good morning. When I run the cell "a_train.shape, a_test.shape", nothing happens. Why?

2 answers ( 1 marked as helpful)
Instructor
Posted on:

26 Sept 2022

0

Hey Alessandro,

Thank you for your question!

In your code, the variables a_train and a_test should be of type numpy.ndarray. If that is true, then the .shape parameter should, in any case, give an output.

Could you please share more details on the problem and, if possible, a screenshot?

Kind regards,
365 Hristina

Posted on:

26 Sept 2022

1

Hi. I have just solved the problem by myself: by mistake, when I was on those cells, I had activated the "Raw NBConvert" (I don't know what it is used for), while it should be on "Code" instead. Thanks

Submit an answer