python - 在keras中 reshape 数组

标签 python keras reshape

在 keras 中,是否可以通过仅指定两个维度之一来[ reshape ][1]eras 中的数组,以便最后一个维度相应地适合?

就我而言,我有 (30,1,2080),我想将其 reshape 为 (15,)

最佳答案

只需将最后一个暗淡设置为-1.. 所以 reshape (15,-1)

关于python - 在keras中 reshape 数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43403560/

相关文章:

python - 在导入中绕过 Python 导入的方法?

python - BeautifulSoup 问题 : Get exact link url and Title

python - Keras 图像数据生成器 : how to use data augmentation with images paths

python - 从 TensorFlow 图中提取权重以在 Keras 中使用它们

使用 cast reshape 多个变量

r - 将 R 中的每个条目的列转换为多行

python - 为什么在 C 中返回 Py_None 之前需要 Py_INCREF(Py_None)?

python - 在 Tkinter 中,我如何从小部件中删除焦点?

machine-learning - Keras 模型准确性没有提高

python - 将 (720, 720) 的 pandas DataFrame reshape 为 (518400, ) 2D 为 1D