Skip to content
Snippets Groups Projects
Commit 28ecac49 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed Py3 issue with fusion script

parent 894f3acd
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ def main(command_line_options = None):
test_label = line[-2]
scores= [ line[-1] ]
for n in range(1, n_systems):
scores.append(gen_data_dev[n].next()[-1])
scores.append(next(gen_data_dev[n])[-1])
scores = numpy.array([scores], dtype=numpy.float64)
s_fused = machine.forward(scores)[0,0]
line = claimed_id + " " + real_id + " " + test_label + " " + str(s_fused) + "\n"
......@@ -123,7 +123,7 @@ def main(command_line_options = None):
test_label = line[-2]
scores= [ line[-1] ]
for n in range(1, n_systems):
scores.append(gen_data_eval[n].next()[-1])
scores.append(next(gen_data_eval[n])[-1])
scores = numpy.array([scores], dtype=numpy.float64)
s_fused = machine.forward(scores)[0,0]
line = claimed_id + " " + real_id + " " + test_label + " " + str(s_fused) + "\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment