GeNIe Tutorials: Tutorial 13 - Accessing data
From DSL
Objective of the tutorial: To learn how to access data that learning will be based on.
Estimated Time: 5 Minutes
At the end of the tutorial you will be able to:
- Edit data files to learn Bayesian networks.
Text File
To access the data stored in the text file select File -> Open Data File... option from the main menu. Next select the data file you wish to load.
Database
For the purpose of this tutorial we will open a Microsoft Access database retention.mdb containing the same information that retention.txt file. To access the data from a database select File -> Import ODBC Data... option from the main menu. A Data Source window will open. If you have created a data source before you can select it from the list. Otherwise you will have to create a new one (you can choose a File Data Source). Click the New... button, select Driver for Microsoft Access (*.mdb) and pick the database file (in our case retention.mdb that can be found in the examples/ subfolder of GeNIe). Once the data source has been created double click on it. GeNIe will display a dialog box that allows for selecting data, that should look like that:
You can select tables, views, or pass a custom SQL query. For the purpose of this tutorial we will select all the tables.
Data Grid
GeNIe uses the data grid view to display the loaded data files and let's users work with them much like with spreadsheets. The data grid for retention.txt looks like that:
The columns denote the variables of the underlying model and rows contain combinations of their states.
Next Tutorial:


