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 4ef741e7f7
Partially fixed the documentation
2 years ago
.github/workflows Partially fixed the documentation 2 years ago
docs Partially fixed the documentation 2 years ago
src/pyctbn Updated the `networkx` dependency to the latest version (`3.0`) and updated the code to reflect the change 2 years ago
tests Updated the `networkx` dependency to the latest version (`3.0`) and updated the code to reflect the change 2 years ago
.gitignore Partially fixed the documentation 2 years ago
LICENSE Create LICENSE 3 years ago
README.md Partially fixed the documentation 2 years ago
doc-requirements.txt Updated all dependencies to the latest version (except for `networkx` updated to `2.8.8`), updated code to reflect the changes 2 years ago
lint-requirements.txt Updated all dependencies to the latest version (except for `networkx` updated to `2.8.8`), updated code to reflect the changes 2 years ago
requrements-extra.txt Huge clean 3 years ago
setup-requirements.txt Updated the `networkx` dependency to the latest version (`3.0`) and updated the code to reflect the change 2 years ago
setup.cfg Readme 3 years ago
setup.py Huge clean 3 years ago
test-requirements.txt Updated all dependencies to the latest version (except for `networkx` updated to `2.8.8`), updated code to reflect the changes 2 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

Documentation

Install these dependencies for linting:

pip3 install -r lint-requirements.txt

To generate the documentation:

sphinx-build -M html docs/ _build_docs/