Creating Case Files

Netica

Creating Case Files

If you want to create a case file containing a single case, you can just enter the case as findings into a Bayes net, and then save it to file from Netica.  To create a file containing many cases, there are several options.

Word Processor:  One possibility is to use a = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_text_editor.htm');return false;">text editor or a word processing program, and manually construct it according to the CASE-1 format.  Be sure to save it as a “Text Only” file if you use a word processing program.

Spreadsheet:  If the data is in a spreadsheet program such as Excel, usually you can just copy the data from the spreadsheet to the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_clipboard.htm');return false;">clipboard, and then paste it into the text editor window, and it will come out in the required format.  You will have to add the two header lines described in the CASE-1 format.  Or you can export it from the spreadsheet as text.  In that case you may only have to add the “// ~ >[CASE 1] >~” header line.  Alternatively, you can learn from Excel.

Database:  Most database programs have an option to export data in the from of “flat files” of text.  Such files are suitable as case files, with the addition of the header lines described above.

Simulation:  If you wish to create a multi-case file consisting of random cases sampled from the probability distribution represented by a Bayes net, Netica can make it automatically.

Programming:  Another way to create a multi-case file is to write a computer program that creates it.  Using the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_Netica_API.htm');return false;">Netica API Programmer’s Library is especially useful for this purpose, since it can create such a file with just a few function calls.  It can also be used to update and otherwise maintain case files, and to read them and do Bayes net learning and inference using them.