marionette-tg / marionette

the programmable network proxy
Apache License 2.0
112 stars 18 forks source link

Validate Marionette formats before running models #20

Open coulls opened 9 years ago

coulls commented 9 years ago

We should do some basic validation of formats once they are loaded by the server/client. This includes verifying the graph structure (e.g., there is a valid path from start to end state) and probability distributions of the transitions (e.g., probabilities sum to 1). We might also consider a validation procedure for actions, as well, so that we do not need to rely on real-time Python errors to discover problems.