Skip to main content

Discretized Interpretable Multi Layer Perceptron (DIMLP) and related algorithms

Project description

dimlpfidex

Discretized Interpretable Multi Layer Perceptron (DIMLP) and related algorithms

Contribution

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 and Poetry

Linux, macOS, Windows/WSL

Use your package manager to install:

  • python
  • poetry

Windows

winget install Python.Python.3.10
  • Install poetry and add it to your PATH.

Ensure python.exe and poetry.exe are accessible in the $PATH environment variable.

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

python.exe --version
poetry.exe --version

Compile

Activate the virtual environment:

poetry shell

Install python dependencies and compile:

poetry install
poetry build

If CMake complains about not finding pybind11, ensure to activate the shell first.

Note: If you still have an issue on Windows, try the following commands to build manually:

mkdir build && cd build
$path = (poetry env info | Select-String -Pattern 'Path:\s+(.*)').Matches.Groups[1].Value
cmake.exe -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH="$path" ..
cmake.exe --build .

Install Pre-commit hooks

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

poetry shell
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.

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.0.tar.gz (134.3 kB view hashes)

Uploaded Source

Built Distributions

dimlpfidex-0.0.0-cp311-cp311-manylinux_2_38_x86_64.whl (432.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.38+ x86-64

dimlpfidex-0.0.0-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.0-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.0-cp310-cp310-manylinux_2_38_x86_64.whl (44.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.38+ x86-64

dimlpfidex-0.0.0-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.0-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.0-cp39-cp39-manylinux_2_35_x86_64.whl (765.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

dimlpfidex-0.0.0-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.0-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.0-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