Tools | WebSimulator Editor
The WebSimulator is a platform for publishing models via the web, which means that any Bayesian network model built with BayesiaLab can be shared privately with clients or publicly with a broader audience. The type of each variable and its associated graphical component is set in BayesiaLab by using the WebSimulator Editor. Once a model is published via the WebSimulator, end users can try out scenarios and examine the dynamics of that model.
The WebSimulator Editor was first introduced in version 5.4, and then updated in version 6.0.
New WebSimulator Editor
As of version 8.0, the WebSimulator Editor has been entirely redesigned to allow you defining all the settings of your simulator within BayesiaLab. Once the network saved with the WebSimulator settings, you just have to connect to the WebSimulator as Admin, and publish your model.
The editor is made of three parts:
- Simulator: for the general settings for the simulator,
- Inputs: for defining the input components,
- Outputs: for defining the output components.
- List of all the nodes of the network that can be used as input/output;
- List of the available metrics that can be used as output;
- Name of the Simulator, as it will appear in the list of the models:
- Title of the Simulator page:
- Author of the model;
- Field of Study, which can be used as a filter in the WebSimulator Home Page;
- Type of analysis, which can be used as a filter in the WebSimulator Home Page;
- Color of the Theme, i.e. color of the upper part of the simulator;
- HTML description that is available when clicking the Information icon:
By default, the description is the Comment associated with the network.
It is also available in the Home Page of the WebSimulator, when hovering over the preview of the model (see below);
- Picture for describing the model. It is possible to click for automatically capturing the image of the corresponding Bayesian network. This image is available when clicking on the Eye icon:
This picture is also used as a preview in the Home Page of the WebSimulator;
- Logo associated with your model at the upper right corner of the simulator (BayesiaLab Conference in Chicago in the example above);
- URL linked to the logo;
- Size of the font;
- Default layout for the input components (among Grid, Flow, Line and Accordion);
- Default layout for the components describing the current set of evidence (among Grid, Flow, Line and Accordion) - this is only available for Adaptive Questionnaire;
- Default layout for the output components (among Grid, Flow, Line and Accordion);
- Show Variations, for highlighting the impact of the evidence;
- Reference State, for showing the variations with respect to the marginal distributions;
- Targets, for defining the Targets of the Adaptive Questionnaire.
- List of all the nodes of the network. Dragging a node from to allows associating an Output Component with this node;
- List of the available metrics that can be used as Output. Dragging a metric from to allows associating an Output Component with this metric;
- Current list of Output Components. They can be ordered by simply dragging them;
Upon dropping from to
A component can be removed by dropping it from to ;
- a Probabilistic Node, you are prompted to select the type of component (among Mean Bar, Mean Gauge, Probability Bar, , and Probability Text);
- a Utility Node, you are prompted to select the type of component (among Utility Bar, Utility Gauge, and Utility Text);
- the Joint Probability, you are prompted to select the type of component (among Joint Probability Bar, Joint Probability Gauge, and Joint Probability Text);
- the Global Utility, you are prompted to select the type of component (among Global Utility Bar, Global Utility Gauge, and Global Utility Text);
- a Decision Node, the Quality Bar is the only available component,
- a Function Node, the Function is the only available component.
- Name that will be used in the simulator. By default, this is the name of the node/metric. Clicking "Long Name" will set the Long Name. It can also be manually edited;
- Color of the font used for the component (by default, this is the color of the node);
- Image of the component (by default, this is the image associated with the node);
- Size of the image (in pixels)
- Number Output Format (for all the components, except those associated with Function Nodes)
Output Format for Function Nodes only (the default format is the one defined in the Function Node Editor | Properties | Output Format)
- HTML description associated with the component, displayed when hovering over the component. By default, this description is the comment associated with the node.
opens a static simulator in your browser to let you see the rendering of your settings.
We describe below the workflow for publishing a simulator:
- Saved the network (Network | Save) with the settings defined with the WebSimulator Editor;
- Open the WebSimulator, e.g. go to Help | BayesiaLab WebSimulator;
- Go to the Admin Interface
- Select New Simulator or New Questionnaire
- Load your network with Select File
- Upon validation, all the settings are automatically set to those defined in BayesiaLab
- Select your model in the list, click Publish, and select your subscription.
The settings coming from the BayesiaLab XBL file have a higher priority than those defined in the Simulator. This means that if you change some settings in the simulator and reload the XBL file, those settings will be lost.