valohai / docs

:blue_book: Valohai ecosystem documentation
https://docs.valohai.com/
0 stars 2 forks source link

Confusion matrix example in docs does not work #174

Closed JuhaKiili closed 2 years ago

JuhaKiili commented 2 years ago

Example in here: https://docs.valohai.com/topic-guides/executions/metadata/

Does not work because of the single quotes when printing JSON.

Change:

print({"data": result})
# {'data': [[3, 0, 0], [0, 1, 2], [2, 1, 3]]}

To:

import json

print(json.dumps({"data": result}))
# {"data": [[3, 0, 0], [0, 1, 2], [2, 1, 3]]}