Skip to main content

Discretized Interpretable Multi Layer Perceptron (DIMLP) and related algorithms

Project description

dimlpfidex build

Discretized Interpretable Multi Layer Perceptron (DIMLP) and related algorithms

Contribution

Get the project code

To get the latest source code, install git and clone the repository:

$ git clone https://github.com/HES-XPLAIN/dimlpfidex.git

To download the required dependencies on your system, run:

$ git submodule init
$ git submodule update

Install C++ toolchain

Linux, macOS, Windows/WSL

Install with your package manager:

  • a C++ compiler (gcc/g++)
  • cmake

Windows

winget install Kitware.CMake

Ensure cmake.exe is accessible in the $PATH environment variable.

cmake.exe --version

Install Python

Install Python:

Manually

  • Linux, macOS, Windows/WSL: Use your package manager to install python3 and python3-dev
  • Windows: winget install Python.Python.3.11

[!IMPORTANT] On Windows, avoid installing Python through the Microsoft Store as the package has additional permission restrictions.

Using Rye

Ensure rye is accessible in the $PATH environment variable. Rye will automatically download the suitable Python toolchain as needed.

To check the installation, check the following commands return an output:

rye --version

Install Python dependencies

Using pip

python -m venv .venv
source .venv/bin/activate
pip install .

[!NOTE] On Windows, use .venv\Scripts\activate instead.

Using Rye

Install python dependencies and create a virtualenv in .venv:

rye sync

Add dependencies

To add new dependencies to the project, either add them to the pyproject.toml file or use rye add <dependency>. To add them to the virtualenv, use pip install . or rye sync.

Work with virtualenv

To activate the virtualenv, use the standard methods:

  • Unix: source .venv/bin/activate
  • Windows: .venv\Scripts\activate

To leave the virtualenv, use deactivate.

Compile and Package

Compile and create archives for distribution:

python -m build

Install Pre-commit hooks

Git hooks are used to ensure quality checks are run by all developers every time before a commit.

Install with pip install pre-commit orrye sync.

To enable pre-commit:

pre-commit install

Pre-commit hooks can be run manually with:

pre-commit run --all-files

Release

To publish the package on PyPI, refer to RELEASE.

Credits

Our test suite is using Obesity or CVD risk dataset from AravindPCoder (under CC BY-SA 4.0 license)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dimlpfidex-0.0.1.tar.gz (8.7 MB view hashes)

Uploaded Source

Built Distributions

dimlpfidex-0.0.1-cp311-cp311-manylinux_2_35_x86_64.whl (768.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

dimlpfidex-0.0.1-cp311-cp311-macosx_12_0_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 macOS 12.0+ x86-64

dimlpfidex-0.0.1-cp310-cp310-manylinux_2_35_x86_64.whl (764.8 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

dimlpfidex-0.0.1-cp310-cp310-macosx_12_0_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 macOS 12.0+ x86-64

dimlpfidex-0.0.1-cp39-cp39-manylinux_2_35_x86_64.whl (765.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

dimlpfidex-0.0.1-cp39-cp39-macosx_12_0_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

dimlpfidex-0.0.1-cp38-cp38-manylinux_2_35_x86_64.whl (764.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

dimlpfidex-0.0.1-cp38-cp38-macosx_12_0_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 macOS 12.0+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page