An API to VFML's Belief Net structure learning engine. The bnlearn program is basically a wrapper around this interface. You can use this interface to avoid making system calls to learn belief nets, or the callbacks in this interface may allow you to modify the learner's behavior enough so that you don't have to edit any code.
Learns the structure and parameters of a Bayesian network using the standard method. The structural prior is set by using P(S) = kappa ^ (symetric difference between the net and the prior net). The parameter prior is K2.
To use this interface you generate a parameters structure using the BNLearn_NewParams method, fill in any parameters you want (to identify prior networks, callbacks, training data, etc), then call the BN_Learn method, extract what you want from the parameters structure, and then free the structure with BNLearn_FreeParams. See the header file for the details of the available parameters.
Go to the source code of this file.
Functions | |
BNLearnParams * | BNLearn_NewParams () |
Makes a new parameters structure with some default values. | |
void | BNLearn_FreeParams (BNLearnParams *params) |
Frees the parameters structure. | |
void | BNLearn (BNLearnParams *params) |
Do the learning. |
|
Do the learning.
|
|
Frees the parameters structure. You are responsible for freeing any additonal memory that may have been allocated by the run (for example any learned BeliefNet). |
|
Makes a new parameters structure with some default values.
|