103 lines
2.5 KiB
Markdown
103 lines
2.5 KiB
Markdown
# <img src="logo.png" alt="logo" width="50"/> BayesNet
|
|
|
|

|
|
[](<https://opensource.org/licenses/MIT>)
|
|

|
|
[](https://app.codacy.com/gh/Doctorado-ML/BayesNet/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
[](https://sonarcloud.io/summary/new_code?id=rmontanana_BayesNet)
|
|
[](https://sonarcloud.io/summary/new_code?id=rmontanana_BayesNet)
|
|

|
|
[](html/index.html)
|
|
|
|
Bayesian Network Classifiers using libtorch from scratch
|
|
|
|
## Dependencies
|
|
|
|
The only external dependency is [libtorch](https://pytorch.org/cppdocs/installing.html) which can be installed with the following commands:
|
|
|
|
```bash
|
|
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
|
|
|
|
```bash
|
|
git clone --recurse-submodules https://github.com/doctorado-ml/bayesnet
|
|
```
|
|
|
|
### Release
|
|
|
|
```bash
|
|
make release
|
|
make buildr
|
|
sudo make install
|
|
```
|
|
|
|
### Debug & Tests
|
|
|
|
```bash
|
|
make debug
|
|
make test
|
|
```
|
|
|
|
### Coverage
|
|
|
|
```bash
|
|
make coverage
|
|
make viewcoverage
|
|
```
|
|
|
|
### Sample app
|
|
|
|
After building and installing the release version, you can run the sample app with the following commands:
|
|
|
|
```bash
|
|
make sample
|
|
make sample fname=tests/data/glass.arff
|
|
```
|
|
|
|
## Models
|
|
|
|
#### - TAN
|
|
|
|
#### - KDB
|
|
|
|
#### - SPODE
|
|
|
|
#### - SPnDE
|
|
|
|
#### - AODE
|
|
|
|
#### - [BoostAODE](docs/BoostAODE.md)
|
|
|
|
#### - BoostA2DE
|
|
|
|
### With Local Discretization
|
|
|
|
#### - TANLd
|
|
|
|
#### - KDBLd
|
|
|
|
#### - SPODELd
|
|
|
|
#### - AODELd
|
|
|
|
## Documentation
|
|
|
|
### [Manual](https://rmontanana.github.io/bayesnet/)
|
|
|
|
### [Coverage report](https://rmontanana.github.io/bayesnet/coverage/index.html)
|
|
|
|
## Diagrams
|
|
|
|
### UML Class Diagram
|
|
|
|

|
|
|
|
### Dependency Diagram
|
|
|
|

|