Learn R Programming

⚠️There's a newer version (5.0.2) of this package.Take me there.

bnlearn (version 4.5)

Bayesian Network Structure Learning, Parameter Learning and Inference

Description

Bayesian network structure learning, parameter learning and inference. This package implements constraint-based (PC, GS, IAMB, Inter-IAMB, Fast-IAMB, MMPC, Hiton-PC, HPC), pairwise (ARACNE and Chow-Liu), score-based (Hill-Climbing and Tabu Search) and hybrid (MMHC, RSMAX2, H2PC) structure learning algorithms for discrete, Gaussian and conditional Gaussian networks, along with many score functions and conditional independence tests. The Naive Bayes and the Tree-Augmented Naive Bayes (TAN) classifiers are also implemented. Some utility functions (model comparison and manipulation, random data generation, arc orientation testing, simple and advanced plots) are included, as well as support for parameter estimation (maximum likelihood and Bayesian) and inference, conditional probability queries, cross-validation, bootstrap and model averaging. Development snapshots with the latest bugfixes are available from .

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

20,455

Version

4.5

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

August 5th, 2019

Functions in bnlearn (4.5)

network-classifiers

Bayesian network Classifiers
arc operations

Drop, add or set the direction of an arc or an edge
bn class

The bn class structure
alarm

ALARM monitoring system (synthetic) data set
BF

Bayes factor between two network structures
asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter
bn.cv

Cross-validation for Bayesian networks
alpha.star

Estimate the optimal imaginary sample size for BDe(u)
arc.strength

Measure arc strength
bn.strength class

The bn.strength class structure
ci.test

Independence and conditional independence tests
bnlearn-package

Bayesian network structure learning, parameter learning and inference
bn.fit plots

Plot fitted Bayesian networks
bn.boot

Parametric and nonparametric bootstrap of Bayesian networks
compare

Compare two or more different Bayesian networks
graph enumeration

Count graphs with specific characteristics
graph integration

Import and export networks from the graph package
bn.fit

Fit the parameters of a Bayesian network
graph generation utilities

Generate empty or random graphs
coronary

Coronary heart disease data set
local discovery algorithms

Local discovery structure learning algorithms
independence-tests

Conditional independence tests
choose.direction

Try to infer the direction of an undirected arc
model string utilities

Build a model string from a Bayesian network and vice versa
bn.fit class

The bn.fit class structure
clgaussian.test

Synthetic (mixed) data set to test learning algorithms
misc utilities

Miscellaneous utilities
score-based algorithms

Score-based structure learning algorithms
preprocess

Pre-process data to better learn Bayesian networks
marks

Examination marks data set
rbn

Simulate random samples from a given Bayesian network
hailfinder

The HailFinder weather forecast system (synthetic) data set
bn.fit utilities

Utilities to manipulate fitted Bayesian networks
structural.em

Structure learning from missing data
lm integration

Produce lm objects from Bayesian networks
cpdag

Equivalence classes, moral graphs and consistent extensions
hybrid algorithms

Hybrid structure learning algorithms
strength.plot

Arc strength plot
gaussian.test

Synthetic (continuous) data set to test learning algorithms
constraint-based algorithms

Constraint-based structure learning algorithms
bn.kcv class

The bn.kcv class structure
configs

Construct configurations of discrete variables
structure-learning

Structure learning algorithms
graph utilities

Utilities to manipulate graphs
learning.test

Synthetic (discrete) data set to test learning algorithms
cpquery

Perform conditional probability queries
lizards

Lizards' perching behaviour data set
single-node local discovery

Discover the structure around a single node
insurance

Insurance evaluation network (synthetic) data set
graphviz.plot

Advanced Bayesian network plots
graphviz.chart

Plotting networks with probability bars
ctsdag

Equivalence classes in the presence of interventions
dsep

Test d-separation
plot.bn

Plot a Bayesian network
naive.bayes

Naive Bayes classifiers
impute

Predict or impute missing data from a Bayesian network
plot.bn.strength

Plot arc strengths derived from bootstrap
node ordering utilities

Utilities dealing with partial node orderings
gRain integration

Import and export networks from the gRain package
foreign files utilities

Read and write BIF, NET, DSC and DOT files
network-scores

Network scores
ROCR integration

Generating a prediction object for ROCR
score

Score of the Bayesian network
pcalg integration

Import and export networks from the pcalg package
test counter

Manipulating the test counter
whitelists-blacklists

Whitelists and blacklists in structure learning