At the end of the tutorial you will be able to:
Load a previously saved model from the disk.
Save a model to the disk.
Work with different file formats supported by GeNIe.
Loading a file in GeNIe:
If you have gone through tutorial 4, you already know one way of loading a file in GeNIe. You used it to load the tutorial3.xdsl file.
There are 3 ways in which you can load a file in GeNIe,
Choose Open from the File menu
Click on [Open ] button from the Standard toolbar
Use the Ctrl+O shortcut
Shown below is the Open option in File Menu.
The numbered list of files at the end of the File Menu are the Most Recently Used [ MRU ] file list. You can click on any of those filenames to open those files.
To open a file GeNIe will display the dialog box shown below:
The dialog box that appears allows you to choose a file to load.
GeNIe supports multiple file formats, and you can choose the format of your file by using the Files of type drop down list.
GeNIe 2.0 uses the XDSL file format, which is an enhanced version of the DSL file format used by GeNIe 1.0.
In addition to the DSL native format (*.dsl), GeNIe also supports the following file formats:
Ergo (*.erg)
This is a simple file format for Bayesian networks used by Noetic Inc. in their program Ergo, Version 1.0. The format has become popular in the Uncertainty in Artificial Intelligence community because several example networks were saved in this format and shared among various researchers. The format includes only node identifiers, state names, conditional probability tables, and locations of the node centers. You will lose all other information if you save a file in Ergo format.
Interchange (*.dsc)
This format is an attempt to design a common format for graphical probabilistic models. The format has not yet been established as a standard and our implementation is a good faith implementation of what has been agreed upon so far. Our implementation allows for reading and writing Microsoft MSBN files.
Netica (*.dne)
This is an implementation of the format used by Norsys Inc. in their program Netica.
Hugin (*.net)
This is an implementation of the format used by Hugin A.G. in their program Hugin.
In order to see all the network files recognized by GeNIe in the directory, choose All Network Types.
In order to see all files in the directory, choose All Files (*.*) .
It is possible that a newly loaded network will have no layout information (i.e., positions of node centers).
In this case, use the Layout function of the View menu.
The function will propose a simple layout for your network.
Saving a file in GeNIe:
There are 3 ways in which you can save a file in GeNIe,
Choose Save orSave As from the File menu
Click on [ Open ] button from the Standard toolbar
Use the face=Verdana> Ctrl+S [ Save ] shortcut
The difference between Save and Save As is that Save As lets you save the file under a different file name, so that you can keep your original file intact. Save option will save the changes in the original file. However if you are working on a new file, then both the options will ask for a filename using the following dialog box:
GeNIe can save in any of the file formats listed in the Loading files in GeNIe tutorial above. These can be selected from the Save as type drop down list.
However only saving in the native GeNIe format will garuntee that all GeNIe-specific features are saved. There might be some loss of information while saving in the other formats.
If you want to have compatibility with GeNIe 1.0, then save the file as GeNIe 1.x ( *.dsl ) file type, by choosing it in the Save as type drop down list.
The reason why it was decided to implement all these formats is that we would like to stimulate exchange of models among various researchers. There are several valuable models available in various formats. Users of GeNIe can load these. Users of other programs can use GeNIe as a conversion program to their favorite format. We would like to warn the users that conversions between various formats lead in general to loss of information, as various formats may lack elements such as submodels, node colors, node size, etc. To prevent loss of information, we recommend the users of GeNIe to use its native format, which is in almost all cases a superset of other formats.
Next Tutorial: