Child pages
  • WebSimulator Editor (8.0)

Contents

Context

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. 

History

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: 

  1. Simulator: for the general settings for the simulator,
  2. Inputs: for defining the input components,
  3. Outputs: for defining the output components.



  1. List of all the nodes of the network that can be used as input/output;
  2. List of the available metrics that can be used as output;
  3. Name of the Simulator, as it will appear in the list of the models:
  4. Title of the Simulator page:
  5. Author of the model;
  6. Field of Study, which can be used as a filter in the WebSimulator Home Page;
  7. Type of analysis, which can be used as a filter in the WebSimulator Home Page;
  8. Color of the Theme, i.e. color of the upper part of the simulator;
  9. 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);
  10. 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;
  11. Logo associated with your model at the upper right corner of the simulator (BayesiaLab Conference in Chicago in the example above);
  12. URL linked to the logo;
  13. Size of the font;
  14. Default layout for the input components (among Grid, Flow, Line and Accordion);
  15. Default layout for the components describing the current set of evidence (among Grid, Flow, Line and Accordion) - this is only available for Adaptive Questionnaire;
  16. Default layout for the output components (among Grid, Flow, Line and Accordion);
  17. Show Variations, for highlighting the impact of the evidence;
  18. Reference State, for showing the variations with respect to the marginal distributions;
  19. Targets, for defining the Targets of the Adaptive Questionnaire.

  1. List of all the nodes of the network. Dragging a node fromto allows associating an Input Component with this node;
  2. List of the available metrics that can be used as output;
  3. Current list of Input Components. They can be ordered by simply dragging them.
    Upon dropping a node from to , you are prompted to select the type of component (among States, Probabilities, and Mean). A component can be removed by dropping it from to ;
  4. Name that will be used in the simulator. By default, this is the name of the node. Clicking "Long Name" will set the Long Name. It can also be manually edited;
  5. Input Type
    1. States
      1. Switches
      2. ComboBox
    2. Probabilities
      1. Slider
      2. Text
    3. Mean
      1. Slider
      2. Text
      3. Both


    (8) Mean Mode (for Mean only)
    1. Binary
    2. MinXEnt
  6. Color of the font used for the component (by default, this is the color of the node);
  7. Image of the component (by default, this is the image associated with the node);
  8. Size of the image (in pixels)

    (10)- Number Output Format (for Probabilities and Mean only)
  9. HTML description associated with the component, displayed when hovering over the component. By default, this description is the comment associated with the node.

  1. List of all the nodes of the network. Dragging a node from to allows associating an Output Component with this node;
  2. List of the available metrics that can be used as Output. Dragging a metric from to allows associating an Output Component with this metric;
  3. Current list of Output Components. They can be ordered by simply dragging them;
    Upon dropping from to
    1. a Probabilistic Node, you are prompted to select the type of component (among Mean Bar, Mean Gauge, Probability Bar, , and Probability Text);
    2. a Utility Node, you are prompted to select the type of component (among Utility Bar, Utility Gauge, and Utility Text);
    3. the Joint Probability, you are prompted to select the type of component (among Joint Probability Bar, Joint Probability Gauge, and Joint Probability Text);
    4. the Global Utility, you are prompted to select the type of component (among Global Utility Bar, Global Utility Gauge, and Global Utility Text);
    5. a Decision Node, the Quality Bar is the only available component,
    6. a Function Node, the Function is the only available component.
    A component can be removed by dropping it from to ;
  4. 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;
  5. Color of the font used for the component (by default, this is the color of the node);
  6. Image of the component (by default, this is the image associated with the node);
  7. Size of the image (in pixels)
  8. 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)
  9. 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.

Model Publication

We describe below the workflow for publishing a simulator:

  1. Saved the network (Network | Save) with the settings defined with the WebSimulator Editor;
  2. Open the WebSimulator, e.g. go to Help | BayesiaLab WebSimulator;
  3. Go to the Admin Interface 



  4. Select New Simulator or New Questionnaire
  5. Load your network with Select File

  6. Upon validation, all the settings are automatically set to those defined in BayesiaLab
  7. 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.