bug in randomizing

This commit is contained in:
codekansas
2016-07-22 23:58:28 -07:00
parent 02dfc92608
commit 5271a38008
+2 -1
View File
@@ -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: