Bayesian Network Classifiers using libtorch from scratch
Go to file
2024-01-04 11:01:59 +01:00
.vscode refactor gridsearch to have only one go method 2023-12-02 10:59:05 +01:00
cmake/modules Fix some mistakes to correct tests 2023-07-20 18:55:56 +02:00
config Add Makefile & tests 2023-07-17 22:51:15 +02:00
data Solve voting vector error 2023-09-02 13:58:12 +02:00
diagrams Upgrade models version and Add class diagram 2023-09-02 14:39:43 +02:00
lib Add reports to gridsearch 2023-11-29 00:26:48 +01:00
sample Fix sample building 2023-12-04 19:12:44 +01:00
src Check min number of nested folds 2024-01-04 11:01:59 +01:00
tests Remove using namespace from Library 2023-11-08 18:45:35 +01:00
.clang-tidy update clang-tidy 2023-08-07 00:44:12 +02:00
.clang-uml Add Linux specific options to compile 2023-08-29 18:20:55 +02:00
.gitignore Build gridsearch structure 2023-11-20 23:32:34 +01:00
.gitmodules Add reports to gridsearch 2023-11-29 00:26:48 +01:00
CMakeLists.txt Include mpi in CMakeLists 2023-12-11 09:06:05 +01:00
gcovr.cfg Update Makefile to add Release & Debug build 2023-08-01 19:02:37 +02:00
grid_stree.json Refactor Hyperparameters management 2023-11-19 22:36:27 +01:00
LICENSE Initial commit 2023-06-29 19:52:57 +00:00
Makefile Fix sample building 2023-12-04 19:12:44 +01:00
README.md Update miniconda instructions 2023-12-23 19:54:00 +01:00
stree_results.json Refactor Hyperparameters management 2023-11-19 22:36:27 +01:00

BayesNet

License: MIT

Bayesian Network Classifier with libtorch from scratch

0. Setup

Before compiling BayesNet.

Miniconda

To be able to run Python Classifiers such as STree, ODTE, SVC, etc. it is needed to install Miniconda. To do so, download the installer from Miniconda and run it. It is recommended to install it in the home folder.

In Linux sometimes the library libstdc++ is mistaken from the miniconda installation and produces the next message when running the b_xxxx executables:

libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by b_xxxx)

The solution is to erase the libstdc++ library from the miniconda installation:

MPI

In Linux just install openmpi & openmpi-devel packages. Only if cmake can't find openmpi installation (like in Oracle Linux) set the following variable:

export MPI_HOME="/usr/lib64/openmpi"

In Mac OS X, install mpich with brew and if cmake doesn't find it, edit mpicxx wrapper to remove the ",-commons,use_dylibs" from final_ldflags

vi /opt/homebrew/bin/mpicx

boost library

Getting Started

The best option is install the packages that the Linux distribution have in its repository. If this is the case:

sudo dnf install boost-devel

If this is not possible and the compressed packaged is installed, the following environment variable has to be set pointing to the folder where it was unzipped to:

export BOOST_ROOT=/path/to/library/

In some cases, it is needed to build the library, to do so:

cd /path/to/library
mkdir own
./bootstrap.sh --prefix=/path/to/library/own
./b2 install
export BOOST_ROOT=/path/to/library/own/

Don't forget to add the export BOOST_ROOT statement to .bashrc or wherever it is meant to be.

libxlswriter

cd lib/libxlsxwriter
make
make install DESTDIR=/home/rmontanana/Code PREFIX=

Environment variable has to be set:

 export LD_LIBRARY_PATH=/usr/local/lib

Release

make release

Debug & Tests

make debug

1. Introduction