问题描述
我有一个关于模型训练阶段中多个输入的混洗的问题.给出以下呼叫:
I have a question regarding the shuffling of multiple inputs during the training phase of a model. Given the following call:
model.fit([input_a_0, input_a_1, input_b_0, input_b_1], y_train,
batch_size=8,
epochs=4,
shuffle=True)
所有输入都需要以完全相同的顺序进行混洗,以便它们正确对齐.现在我的问题是Keras如何处理这个问题?它们都是以相同的方式(使用相同的排列索引)进行混洗还是每个输入都独立于其他输入进行混洗?
All the inputs need to be shuffled in the exact same order so that they align correctly. Now my question is how Keras handles this? Are they all shuffled in the same way (using the same permutation index) or is each input shuffled independently of the other inputs?
推荐答案
自然地,Keras会正确地对其进行洗牌,否则将会有大量的抱怨和未解决的问题,说明Keras如何无法取得任何良好的结果.
Naturally Keras will shuffle them correctly, otherwise there would be a huge number of complaints and open issues about how Keras couldn't reach any good results.
这篇关于多个输入的Keras改组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!