Reference Manual: DSL tan
This class implements the learning procedure for learning Tree Augmented Naive (TAN) Bayes models.
Methods
- DSL_tan()
Constructor for the class DSL_tan. The constructor creates the object with the default values of the parameters. The parameters, which are public members of the object are:
• std::string classvar Used to pick the class variable for the network. Is case-sensitive.
• int maxSearchTime Used to set maximum runtime for the algorithm.
• unsigned int seed Random seed used for picking the root node among the feature variables.
DSL_tan() sets both maxSearchTime and seed to 0. The variable classvar must be set, or otherwise the algorithm will terminate with an error code.
- int Learn(DSL_dataset &data, DSL_network &net);
This method performs the actual learning procedure. The first argument is the input data set. The result of learning procedure is stored in the DSL_network, which is the second argument. The method returns DSL_OKAY if learning was successful and an error code otherwise.