Ricardo Montañana Gómez 64970cf7f7 Merge pull request 'alphablock' (#32) from alphablock into main
Reviewed-on: #32
Added

- Add a new hyperparameter to the BoostAODE class, alphablock, to control the way α is computed, with the last model or with the ensmble built so far. Default value is false.
- Add a new hyperparameter to the SPODE class, parent, to set the root node of the model. If no value is set the root parameter of the constructor is used.
- Add a new hyperparameter to the TAN class, parent, to set the root node of the model. If not set the first feature is used as root.
2025-01-22 11:48:09 +00:00
2024-09-13 09:42:06 +02:00
2024-05-08 06:42:19 +00:00
2024-04-30 12:06:32 +02:00
2024-11-23 17:22:41 +00:00
2024-03-09 12:27:05 +01:00
2024-11-23 20:28:16 +01:00
2024-05-23 17:34:48 +00:00
2024-12-14 20:27:07 +01:00
2024-11-23 17:22:41 +00:00
2024-03-08 22:20:54 +01:00
2024-11-23 20:28:16 +01:00
2024-12-14 20:27:07 +01:00
2025-01-22 12:43:40 +01:00
2024-11-23 17:22:41 +00:00
2024-03-11 10:57:27 +01:00
2024-04-21 11:31:27 +02:00
2024-11-23 20:28:16 +01:00
2024-12-18 14:29:12 +01:00

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.zip

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

- BoostAODE

- BoostA2DE

With Local Discretization

- TANLd

- KDBLd

- SPODELd

- AODELd

Documentation

Manual

Coverage report

Diagrams

UML Class Diagram

BayesNet UML Class Diagram

Dependency Diagram

BayesNet Dependency Diagram

Description
Bayesian Network Classifiers using libtorch from scratch
Readme MIT 14 MiB
2025-07-19 20:52:59 +00:00
Languages
C++ 94.8%
Makefile 2.1%
CMake 1.3%
Python 1%
Dockerfile 0.4%
Other 0.4%