![]() |
NORSYS SOFTWARE © 2002 | NETICA API | C   VERSION   2.15  |
void CaseFileRevisesCPTs_bn ( | stream_ns* file, const nodelist_bn* nodes, int updating, double degree ) |
Reads a file of cases from file and uses them to revise the experience and conditional probability tables (CPT) of each node in nodes. This function does the same thing as FindingsReviseCPTs_bn, for each of the cases in file, but is more efficient than multiple calls to FindingsReviseCPTs_bn. See the description of FindingsReviseCPTs_bn for more information on the arguments passed, and how this function revises the probabilities.
All the nodes of nodes must be in the same net.
Pass 0 for updating. It is only for future expandability.
It is okay if the case file has missing data, or has data on nodes not included in nodes, or even has data on nodes not in the net containing nodes. However the probabilities of a node are only modified by cases supplying a value for the node and for all of its parents.
Version:
See also:
FindingsReviseCPTs_bn | Revise probabilities with a single case |