Learn R Programming

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

bnlearn (version 4.3)

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), pairwise (ARACNE and Chow-Liu), score-based (Hill-Climbing and Tabu Search) and hybrid (MMHC and RSMAX2) 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 and cross-validation. Development snapshots with the latest bugfixes are available from .

Copy Link

Version

Install

install.packages('bnlearn')

Monthly Downloads

23,185

Version

4.3

License

GPL (>= 2)

Maintainer

Marco Scutari

Last Published

January 15th, 2018

Functions in bnlearn (4.3)

bn.fit

Fit the parameters of a Bayesian network
bn.fit class

The bn.fit class structure
arc.strength

Measure arc strength
arc operations

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

The bn class structure
bn.cv

Cross-validation for Bayesian networks
alarm

ALARM monitoring system (synthetic) data set
alpha.star

Estimate the optimal imaginary sample size for BDe(u)
asia

Asia (synthetic) data set by Lauritzen and Spiegelhalter
BF

Bayes factor between two network structures
bn.kcv class

The bn.kcv class structure
clgaussian.test

Synthetic (mixed) data set to test learning algorithms
bn.fit utilities

Utilities to manipulate fitted Bayesian networks
compare

Compare two or more different Bayesian networks
bn.fit plots

Plot fitted Bayesian networks
dsep

Test d-separation
foreign files utilities

Read and write BIF, NET, DSC and DOT files
choose.direction

Try to infer the direction of an undirected arc
ci.test

Independence and conditional independence tests
gRain integration

Import and export networks from the gRain package
gaussian.test

Synthetic (continuous) data set to test learning algorithms
bn.strength class

The bn.strength class structure
cpdag

Equivalence classes, moral graphs and consistent extensions
cpquery

Perform conditional probability queries
graph integration

Import and export networks from the graph package
score-based algorithms

Score-based structure learning algorithms
hybrid algorithms

Hybrid structure learning algorithms
configs

Construct configurations of discrete variables
constraint-based algorithms

Constraint-based structure learning algorithms
graph utilities

Utilities to manipulate graphs
graph generation utilities

Generate empty or random graphs
bn.boot

Parametric and nonparametric bootstrap of Bayesian networks
bnlearn-package

Bayesian network structure learning, parameter learning and inference
coronary

Coronary heart disease data set
graph enumeration

Count graphs with specific characteristics
misc utilities

Miscellaneous utilities
local discovery algorithms

Local discovery structure learning algorithms
structural.em

Structure learning from missing data
test counter

Manipulating the test counter
node ordering utilities

Utilities dealing with partial node orderings
pcalg integration

Import and export networks from the pcalg package
relevant

Identify relevant nodes without learning the Bayesian network
ROCR integration

Generating a prediction object for ROCR
graphviz.chart

Plotting networks with probability bars
lizards

Lizards' perching behaviour data set
marks

Examination marks data set
preprocess

Pre-process data to better learn Bayesian networks
rbn

Simulate random data from a given Bayesian network
impute

Predict or impute missing data from a Bayesian network
insurance

Insurance evaluation network (synthetic) data set
single-node local discovery

Discover the structure around a single node
graphviz.plot

Advanced Bayesian network plots
hailfinder

The HailFinder weather forecast system (synthetic) data set
model string utilities

Build a model string from a Bayesian network and vice versa
naive.bayes

Naive Bayes classifiers
plot.bn

Plot a Bayesian network
plot.bn.strength

Plot arc strengths derived from bootstrap
learning.test

Synthetic (discrete) data set to test learning algorithms
score

Score of the Bayesian network
strength.plot

Arc strength plot