-2
愚蠢的问题,我正在经历Andrew Ng最新的深度学习课程的第三周,并陷入了一个相当简单的Numpy功能(我认为?)。Numpy-深度学习,培训示例
练习是找出有多少个训练样例,我们有。
任何想法是什么Numpy的功能是找出预装载培训示例的大小。
谢谢!
shape_X = X.shape
shape_Y = Y.shape
m = ?
print ('The shape of X is: ' + str(shape_X))
print ('The shape of Y is: ' + str(shape_Y))
print ('I have m = %d training examples!' % (m))
这是一个很棒的解释!非常感谢! – kyttcar