inputs, outputs = [], []
for inp, outs in data.items():
inputs.append(list(inp))
outputs.append(np.maximum.reduce(outs))
return inputs, outputs
After Change
inputs, outputs = [], []
for inp, outs in data.items():
inputs.append(list(inp))
combined = [0] * len(outs[0])
for i in range(len(combined)):
combined[i] = max(j[i] for j in outs)
outputs.append(combined)