Saving and Reading Cases

Netica

Saving and Reading Cases

Saving:  To save in a file all the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_finding.htm');return false;">findings from the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_active_window.htm');return false;">active net, make sure no nodes are = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_deselect_nodes.htm');return false;">selected, choose Cases Save Case As, or click image\SaveCaseTOOL.gif, and then enter the file name.  If some nodes are selected, then only the findings for the selected nodes will be saved, and Netica will beep and put a notice in the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_Messages_window.htm');return false;">Messages window that the whole case wasn’t saved.  Later, if you make changes to the case you can choose Cases Save Case.

Saving Multi-case:  Currently Netica is unable to save a case to a multi-case file, but there are other options for creating multi-case files.

Reading:  To later read the case back into its original net, make that net = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_active_window.htm');return false;">active, ensure that no nodes are = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_deselect_nodes.htm');return false;">selected, choose Cases Get Case or click image\OpenCaseTOOL.gif and select the case file from the standard dialog box which appears.  Any existing findings in the net will be removed, the file will be read, and the findings entered into the net.  If the net is = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_auto_update.htm');return false;">auto-updating, then belief updating will be done automatically to account for the findings of the case.

If some nodes are selected when you choose Cases Get Case, then Netica only removes findings and reads new ones for the selected nodes (it also beeps and puts a notice in the = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_Messages_window.htm');return false;">Messages window that the whole case wasn’t read).

You can also read a case from the command line.

Reading Multi-case:  If you read from a file with more than one case in it, then Netica will ask you which case you want.  Pressing shift+f8 gets the previous case.  If the case file stores IDnums then Netica will ask for one, otherwise it will ask for the position of the case.

Pressing the f8 key generally produces the same result as choosing Cases Get Case from the menu, except if a case has just been read from a multi-case file.  Then f8 will automatically get the next case without opening any dialog boxes, which makes it convenient to browse the cases one by one.  Netica prints the case’s number in the Messages window.

Different Net:  It is possible to read a case into a different net than the one it was originally saved from.  Findings from nodes of the old net will be entered into nodes of the same name in the new net (the titles of the nodes are ignored).  The state names of the nodes (if present) should also be the same.  Any findings not corresponding to a node in the new net will simply be ignored. All name comparisons are case-sensitive.

Numeric Values:  Real number values that you have = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_enter_finding.htm');return false;">entered as findings for = 4 && typeof(BSPSPopupOnMouseOver) == 'function') BSPSPopupOnMouseOver(event);" class="BSSCPopup" onclick="BSSCPopup('X_PU_discretize.htm');return false;">discretized continuous nodes are saved in case files, rather than just the state they correspond to.  This enables reading the case into another net whose node for that variable has been discretized in a different way.

Missing State:  If you read in a case, and the case file has a value that isn’t any of the states of the corresponding node in the net, then an error message will be displayed.  For example, if node ‘color’ has the states ‘red’ and ’green’, and in the case file the value for color is ‘blue’, the message will be displayed.  An exception to this occurs if one of the states of the net node is named ‘other’. Then the case will be read without error, and the finding for the node will be ‘other’. (more info)