@patrickstock The current example of mdf json you use is different from the format in the current python api,
https://github.com/ModECI/MDFTests/blob/main/mdf_to_pytorch/example_mdfs/mlp_classifier/mlp_classifier.json
Some differences:
- it uses lists for functions. Can you update those to use dicts?
- A "value" attribute is required on the output nodes
- reciever_port -> receiver_port
Ignoring for now the loading of the weights from h5 for params, it should be possible to load this and export to other formats already, e.g. graphviz with these changes, e.g. using python -m modeci_mdf.export.graphviz mlp_classifier.json 2 with the latest main of mdf (using a hacked version of your file):

@patrickstock The current example of mdf json you use is different from the format in the current python api,
https://github.com/ModECI/MDFTests/blob/main/mdf_to_pytorch/example_mdfs/mlp_classifier/mlp_classifier.json
Some differences:
Ignoring for now the loading of the weights from h5 for params, it should be possible to load this and export to other formats already, e.g. graphviz with these changes, e.g. using
python -m modeci_mdf.export.graphviz mlp_classifier.json 2with the latest main of mdf (using a hacked version of your file):