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

22.2K

Last 30 days

796th

73.8K

Last 90 days

271.7K

Last year

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

CRAN Check Status

1 NOTE
13 OK
Show all 14 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-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 NOTE
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
Check details (1 non-OK)
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

Additional Issues

Check History

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 (35)

depends

Dependency Network

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

Version History

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
updated 4.6.1 ← 4.6 diff Sep 20, 2020
updated 4.6 ← 4.5 diff Sep 14, 2020
updated 4.5 ← 4.4.1 diff Aug 4, 2019
updated 4.4.1 ← 4.4 diff Mar 4, 2019
updated 4.4 ← 4.3 diff Oct 15, 2018