Skip to content

bnlearn

Bayesian Network Structure Learning, Parameter Learning and Inference

v5.1 · Aug 20, 2025 · GPL (>= 2)

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 <https://www.bnlearn.com/>.

Downloads

CRAN

38.7K

Last 30 days

583rd

93.5K

Last 90 days

299.1K

Last year

Trend: +41.9% (30d vs prior 30d)

r2u CRAN

59

Last 30 days

257

Last 90 days

798

Last year

Trend: -39.8% (30d vs prior 30d)

autoCRAN

7

Last 7 days

47

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Additional Issues

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.0Mb
  sub-directories of 1Mb or more:
    data   2.1Mb
    libs   1.7Mb

Reverse Dependencies (33)

depends

Dependency Network

Dependencies Reverse dependencies GroupBN dbnR BNrich BayesNetBP BayesianNetwork DPI MRPC MoTBFs OrdCD PCBN SELF StratifiedBalancing bayesvl bnRep bnmonitor +18 more reverse deps bnlearn

Version History

66 tracked
new 5.1 Mar 10, 2026
updated 5.1 ← 5.0.2 diff Aug 19, 2025
updated 5.0.2 ← 5.0.1 diff Jan 6, 2025
updated 5.0.1 ← 5.0 diff Aug 18, 2024
updated 5.0 ← 4.9.4 diff Jul 29, 2024
updated 4.9.4 ← 4.9.3 diff May 2, 2024
updated 4.9.3 ← 4.9.2 diff Mar 14, 2024
updated 4.9.2 ← 4.9.1 diff Mar 11, 2024
updated 4.9.1 ← 4.9 diff Dec 4, 2023
updated 4.9 ← 4.8.3 diff Sep 6, 2023
updated 4.8.3 ← 4.8.1 diff Apr 28, 2023
updated 4.8.1 ← 4.8 diff Sep 21, 2022
updated 4.8 ← 4.7.1 diff Sep 18, 2022
updated 4.7.1 ← 4.7 diff Mar 30, 2022
updated 4.7 ← 4.6.1 diff Sep 5, 2021