Learn R Programming

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

bnlearn (version 3.6)

Bayesian network structure learning, parameter learning and inference

Description

Bayesian network structure learning, parameter learning and inference. This package implements constraint-based (GS, IAMB, Inter-IAMB, Fast-IAMB, MMPC, Hiton-PC), pairwise (ARACNE and Chow-Liu), score-based (Hill-Climbing and Tabu Search) and hybrid (MMHC and RSMAX2) structure learning algorithms for both discrete and 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 and cross-validation. Development snapshots with the latest bugfixes are available from www.bnlearn.com.

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

23,185

Version

3.6

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

June 17th, 2014

Functions in bnlearn (3.6)

asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter
bnlearn-package

Bayesian network structure learning, parameter learning and inference.
bn.var

Structure variability of Bayesian networks
compare

Compare two different Bayesian networks
misc utilities

Miscellaneous utilities
graph utilities

Utilities to manipulate graphs
gaussian.test

Synthetic (continuous) data set to test learning algorithms
relevant

Identify Relevant Nodes Without Learning the Bayesian network
bn.fit class

The bn.fit class structure
single-node local discovery

Discover the structure around a single node
bn.cv

Cross-validation for Bayesian networks
node ordering utilities

Utilities dealing with partial node orderings
model string utilities

Build a model string from a Bayesian network and vice versa
plot.bn.strength

Plot arc strengths derived from bootstrap
preprocess

Pre-process data to better learn Bayesian networks
cpdag

Equivalence classes, moral graphs and consistent extensions
dsep

Test d-separation
gRain integration

Import and export networks from the gRain package
deal integration

bnlearn - deal package integration
bn.fit plots

Plot fitted Bayesian networks
bn class

The bn class structure
cpquery

Perform conditional probability queries
naive.bayes

Naive Bayes classifiers
arc operations

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

The bn.strength class structure
graph generation utilities

Generate empty or random graphs
learning.test

Synthetic (discrete) data set to test learning algorithms
parallel integration

bnlearn - snow/parallel package integration
graph integration

Import and export networks from the graph package
score

Score of the Bayesian network
bn.boot

Parametric and nonparametric bootstrap of Bayesian networks
choose.direction

Try to infer the direction of an undirected arc
coronary

Coronary Heart Disease data set
bn.fit utilities

Utilities to manipulate fitted Bayesian networks
local discovery algorithms

Local discovery structure learning algorithms
test counter

Manipulating the test counter
alarm

ALARM Monitoring System (synthetic) data set
bn.kcv class

The bn.kcv class structure
arc.strength

Measure arc strength
bn.fit

Fit the parameters of a Bayesian network
hailfinder

The HailFinder weather forecast system (synthetic) data set
rbn

Simulate random data from a given Bayesian network
hybrid algorithms

Hybrid structure learning algorithms
score-based algorithms

Score-based structure learning algorithms
strength.plot

Arc strength plot
ci.test

Independence and Conditional Independence Tests
lizards

Lizards' perching behaviour data set
insurance

Insurance evaluation network (synthetic) data set
constraint-based algorithms

Constraint-based structure learning algorithms
foreign files utilities

Read and write BIF, NET, DSC and DOT files
marks

Examination marks data set
graphviz.plot

Advanced Bayesian network plots
plot.bn

Plot a Bayesian network