2023-06-29 19:52:57 +00:00
|
|
|
# BayesNet
|
|
|
|
|
2023-10-22 18:03:34 +00:00
|
|
|
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
|
|
|
|
2023-07-02 09:39:12 +00:00
|
|
|
Bayesian Network Classifier with libtorch from scratch
|
|
|
|
|
2023-09-18 21:26:22 +00:00
|
|
|
## 0. Setup
|
|
|
|
|
|
|
|
Before compiling BayesNet.
|
|
|
|
|
2023-09-28 07:44:33 +00:00
|
|
|
### boost library
|
|
|
|
|
|
|
|
[Getting Started](<https://www.boost.org/doc/libs/1_83_0/more/getting_started/index.html>)
|
|
|
|
|
2023-10-04 10:42:35 +00:00
|
|
|
The best option is install the packages that the Linux distribution have in its repository. If this is the case:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo dnf install boost-devel
|
|
|
|
```
|
|
|
|
|
|
|
|
If this is not possible and the compressed packaged is installed, the following environment variable has to be set:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export BOOST_ROOT=/path/to/library/
|
|
|
|
```
|
|
|
|
|
2023-09-28 07:44:33 +00:00
|
|
|
### libxlswriter
|
|
|
|
|
2023-09-18 21:26:22 +00:00
|
|
|
```bash
|
|
|
|
cd lib/libxlsxwriter
|
|
|
|
make
|
2023-10-15 09:19:58 +00:00
|
|
|
make install DESTDIR=/home/rmontanana/Code PREFIX=
|
2023-09-18 21:26:22 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Environment variable has to be set:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export LD_LIBRARY_PATH=/usr/local/lib
|
|
|
|
```
|
|
|
|
|
|
|
|
### Release
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make release
|
|
|
|
```
|
|
|
|
|
|
|
|
### Debug & Tests
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make debug
|
|
|
|
```
|
|
|
|
|
2023-07-11 20:23:49 +00:00
|
|
|
## 1. Introduction
|