mirror of
https://github.com/wassname/keras-language-modeling.git
synced 2026-09-17 12:20:38 +08:00
bug in randomizing
This commit is contained in:
@@ -132,7 +132,8 @@ if __name__ == '__main__':
|
||||
i = 0
|
||||
question_idx = np.zeros(shape=(batch_size, question_maxlen, len(qa.vocab)))
|
||||
answer_idx = np.zeros(shape=(batch_size, answer_maxlen))
|
||||
for s in random.shuffle(questions):
|
||||
random.shuffle(questions)
|
||||
for s in questions:
|
||||
if test:
|
||||
ans = s['good']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user