【发布时间】:2017-12-03 00:00:59
【问题描述】:
我遇到了以下声明:
train_set_x.reshape(train_set_x.shape[0], -1).T
train_set_x 的shape 是:(209, 64, 64, 3)
因此我认为shape[0] 是209,而T 是转置?
但是我无法理解上面的reshape 声明?什么是-1?
非常感谢任何澄清。
谢谢。
【问题讨论】:
标签: python arrays numpy shape reshape