Neural Networks and Deep Learning - WK 2 - Exercise 1

Getting error name ‘m_train’ is not defined as shown in below image
please guide

Why would you set m_train to be equal to its own shape?

As Tom says, the way you wrote the code does not make any sense. They tell you how to compute m_train in the instructions for that section. It would be worth having another look at the instructions.