Skip to content

Doctorado-ML/BayesNet

Repository files navigation

logo BayesNet

C++ License: MIT Gitea Release Codacy Badge Security Rating Reliability Rating Gitea Last Commit Coverage Badge DOI

Bayesian Network Classifiers library

Dependencies

The only external dependency is libtorch which can be installed with the following commands:

wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip
unzip libtorch-shared-with-deps-latest.zips

Setup

Getting the code

git clone --recurse-submodules https://github.com/doctorado-ml/bayesnet

Release

make release
make buildr
sudo make install

Debug & Tests

make debug
make test

Coverage

make coverage
make viewcoverage

Sample app

After building and installing the release version, you can run the sample app with the following commands:

make sample
make sample fname=tests/data/glass.arff

Models

- TAN

- KDB

- SPODE

- SPnDE

- AODE

- A2DE

- BoostA2DE

With Local Discretization

- TANLd

- KDBLd

- SPODELd

- AODELd

Documentation

Diagrams

UML Class Diagram

BayesNet UML Class Diagram

Dependency Diagram

BayesNet Dependency Diagram