【发布时间】:2017-03-07 15:07:53
【问题描述】:
假设我们确实想使用 Keras/TensorFlow 处理图像(或 ndim 向量)。 而且,为了花哨的正则化,我们希望将每个输入向左移动随机数量的位置(溢出的部分重新出现在右侧)。
如何查看和解决:
1)
TensorFlow 的 numpy roll 函数有什么变化吗?
2)
x - 2D tensor
ri - random integer
concatenate(x[:,ri:],x[:,0:ri], axis=1) #executed for each single input to the layer, ri being random again and again (I can live with random only for each batch)
【问题讨论】:
标签: tensorflow theano keras