Bayesian Network Classifiers using libtorch from scratch
Go to file
Ricardo Montañana 4992685e94
Add devcontainer to repository
Fix update_coverage.py with lcov2.1 output
2024-05-08 06:42:19 +00:00
.devcontainer Add devcontainer to repository 2024-05-08 06:42:19 +00:00
.github Add devcontainer to repository 2024-05-08 06:42:19 +00:00
.sonarlint Update gcovr configuration 2024-04-30 12:06:32 +02:00
.vscode Refactor coverage report generation 2024-05-06 17:56:00 +02:00
bayesnet Refactor coverage report generation 2024-05-06 17:56:00 +02:00
cmake/modules Fix some mistakes to correct tests 2023-07-20 18:55:56 +02:00
config Fix config.h location problem 2024-03-09 12:27:05 +01:00
diagrams Upgrade version number to 1.0.5 2024-04-20 18:00:40 +02:00
docs Update pdf coverage report 2024-05-06 18:28:15 +02:00
html Refactor coverage report generation 2024-05-06 17:56:00 +02:00
lib Implement SPnDE and A2DE 2024-05-05 01:35:17 +02:00
sample Add copyright header to source files 2024-04-11 18:02:49 +02:00
tests Refactor coverage report generation 2024-05-06 17:56:00 +02:00
.clang-tidy Refactor library structure 2024-03-08 22:20:54 +01:00
.clang-uml Add class and dependency diagrams 2024-04-19 14:33:00 +02:00
.gitignore Add devcontainer to repository 2024-05-08 06:42:19 +00:00
.gitmodules Remove catch2 as submodule 2024-04-30 11:02:23 +02:00
CHANGELOG.md Update changelog 2024-05-06 18:02:18 +02:00
CMakeGraphVizOptions.cmake Upgrade version number to 1.0.5 2024-04-20 18:00:40 +02:00
CMakeLists.txt Refactor coverage report generation 2024-05-06 17:56:00 +02:00
LICENSE Update License & Readme 2024-03-11 10:57:27 +01:00
logo.png Add Library Logo 2024-04-21 11:31:27 +02:00
Makefile Add devcontainer to repository 2024-05-08 06:42:19 +00:00
README.md Refactor coverage report generation 2024-05-06 17:56:00 +02:00
update_coverage.py Add devcontainer to repository 2024-05-08 06:42:19 +00:00

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