decode — Protobuf Decoder

Decode experiment protobuf files to JSON.

Usage:

python -m experiments.decode results/scaling_4_10_20.pb
python -m experiments.decode results/scaling_4_10_20.pb -o results/scaling_4_10_20.json
python -m experiments.decode results/*.pb
experiments.decode._guess_experiment(path: Path) str[source]

Guess experiment name from the filename prefix.

experiments.decode.decode(path: Path) str[source]

Read a protobuf file and return its JSON representation.

experiments.decode.main()[source]