dplbnDE separates structure learning (finding the DAG) from parameter learning (optimizing the CPTs). Structure learning is handled byDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/alexplatasl/dplbnde/llms.txt
Use this file to discover all available pages before exploring further.
bnclassify; dplbnDE then uses DE to discriminatively optimize the parameters.
Supported structures
Naive Bayes (nb)
Class is the sole parent of every feature. Features are conditionally independent given the class. Simple and fast.
TAN — tan / tancl
Tree Augmented Naive Bayes via the Chow-Liu algorithm. Each feature has the class plus at most one other feature as parent.
Hill-Climbing (hc)
Greedy search via
bnclassify::tan_hc. Accepts a k parameter for cross-validation scoring folds.Custom edgelist
Supply any valid DAG as a matrix of (from, to) edges for domain-expert topologies.
Choosing a structure
The DE result object
Every algorithm returns an S3 object of classDE:
| Field | Type | Description |
|---|---|---|
$Best | bnc_bn | Best network found — highest CLL |
$BestCLL | numeric | CLL of the best network |
$pobFinal | list | All networks in the final population |
$CLLPobFinal | numeric vector | CLL of each final population member |
$N.evals | integer | Total fitness evaluations |
$convergence | numeric vector | Best CLL at each generation |
$evaluations | integer vector | Cumulative evaluations per generation |
Using results for prediction
$Best is a bnc_bn object compatible with all bnclassify functions:
The class variable must appear in your edge list when using a custom structure, and all node names must match column names in your data frame.