1
0
Fork 0
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Meliurwen 992aa25761 Added +x permissions to all *.py files 3 years ago
.github/workflows Update main.yml 3 years ago
docs Added +x permissions to all *.py files 3 years ago
src/pyctbn Added +x permissions to all *.py files 3 years ago
tests Added +x permissions to all *.py files 3 years ago
.gitignore Added more istructions 3 years ago
LICENSE Create LICENSE 3 years ago
README.md Added more istructions 3 years ago
doc-requirements.txt Create doc-requirements.txt 4 years ago
lint-requirements.txt Huge clean 3 years ago
requrements-extra.txt Huge clean 3 years ago
setup-requirements.txt Huge clean 3 years ago
setup.cfg Readme 3 years ago
setup.py Huge clean 3 years ago
test-requirements.txt Added testing and linting instructions, plus a missing test dependency 3 years ago

README.md

PyCTBN

coverage

A Continuous Time Bayesian Networks Library

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