Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍
https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Meliurwen
df3225c288
|
2 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
docs | 3 years ago | |
src/pyctbn | 2 years ago | |
tests | 2 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
doc-requirements.txt | 2 years ago | |
lint-requirements.txt | 2 years ago | |
requrements-extra.txt | 3 years ago | |
setup-requirements.txt | 2 years ago | |
setup.cfg | 3 years ago | |
setup.py | 3 years ago | |
test-requirements.txt | 2 years ago |
README.md
Installation from Source
Prerequisites
python3
(>=3.6)python3-setuptools
python3-pip
Install
At the root of the project's folder launch:
pip3 install .
Uninstall
Anywhere in the system launch:
pip3 uninstall <package_name>
Upgrade
At the root of the project's folder launch:
pip3 install --upgrade .
Installation via wheel package
Pip installation
Download the latest release in .tar.gz or .whl format and simply use pip install to install it:
pip install PyCTBN-2.2.tar.gz
Develop
Prerequisites:
python3
(>=3.6)python3-setuptools
python3-pip
python3-venv
(optional)
Create the virtual environment in the project's folder:
python3 -m venv venv
Or if oyu wanna use the virtualenv
package:
virtualenv -p python3 venv
Activate the virtual environment:
source venv/bin/activate
Prepare the development environment:
./setup.py develop
That's all! ☕️
Tip: To deactivate the virtual environment simply issue the
deactivate
command.
Testing & Linting
Install these dependencies for tesing:
pip3 install -r test-requirements.txt
Install these dependencies for linting:
pip3 install -r lint-requirements.txt
To launch pytest:
pytest
To launch flake8:
flake8
To launch pylint:
pylint --output-format=text --rcfile=setup.cfg src/ test/ *.py