| { | |
| "Arrays": { | |
| "format": "ModECI MDF v0.4", | |
| "generating_application": "Python modeci-mdf v0.4.11", | |
| "graphs": { | |
| "array_example": { | |
| "nodes": { | |
| "input_node": { | |
| "parameters": { | |
| "input_level": { | |
| "value": [ | |
| [ | |
| 1, | |
| 2.0 | |
| ], | |
| [ | |
| 3, | |
| 4 | |
| ] | |
| ] | |
| } | |
| }, | |
| "output_ports": { | |
| "out_port": { | |
| "value": "input_level" | |
| } | |
| } | |
| }, | |
| "middle_node": { | |
| "input_ports": { | |
| "input_port1": { | |
| "shape": [ | |
| 2, | |
| 2 | |
| ] | |
| } | |
| }, | |
| "parameters": { | |
| "slope": { | |
| "value": 0.5 | |
| }, | |
| "intercept": { | |
| "value": [ | |
| [ | |
| 0.0, | |
| 1.0 | |
| ], | |
| [ | |
| 2.0, | |
| 2.0 | |
| ] | |
| ] | |
| }, | |
| "linear_1": { | |
| "function": "linear", | |
| "args": { | |
| "variable0": "input_port1", | |
| "slope": "slope", | |
| "intercept": "intercept" | |
| } | |
| } | |
| }, | |
| "output_ports": { | |
| "output_1": { | |
| "value": "linear_1" | |
| } | |
| } | |
| } | |
| }, | |
| "edges": { | |
| "input_edge": { | |
| "sender": "input_node", | |
| "receiver": "middle_node", | |
| "sender_port": "out_port", | |
| "receiver_port": "input_port1", | |
| "parameters": { | |
| "weight": [ | |
| [ | |
| 1, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 1 | |
| ] | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |