BayesNet/README.md
2024-05-06 17:56:00 +02:00

2.4 KiB

logo BayesNet

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

Bayesian Network Classifiers using libtorch from scratch

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

- AODE

- BoostAODE

With Local Discretization

- TANLd

- KDBLd

- SPODELd

- AODELd

Diagrams

UML Class Diagram

BayesNet UML Class Diagram

Dependency Diagram

BayesNet Dependency Diagram

Coverage report

Coverage report