Skip to main content

Robust Graph-Grouped Permutation Importance (R-GGPI)

License: MIT Python 3.8+ Scikit-Learn Compatible

R-GGPI is a fast, collinearity-resilient feature attribution and selection package designed for complex tabular machine learning models.

Traditional Permutation Feature Importance (PFI) breaks down under multi-collinearity because independent shuffling destroys joint feature distributions, while game-theoretic alternatives like TreeSHAP suffer from severe combinatorial computational explosion on large datasets. R-GGPI bridges this gap by combining Minimum Spanning Tree (MST) graph partitioning, Target-Aware Branch Anchoring, and an Adaptive Complexity Cost Gate for intelligent multi-core parallelization.


Key Features

  • Collinearity Resilience: Groups redundant features into disconnected MST coalition branches and permutes them jointly, preserving real-world data manifolds.
  • Target-Aware Branch Anchoring: Prevents low-importance "hitchhiker" variables from draining attribution credit away from primary predictive features within a shared cluster.
  • Extreme Scalability: Achieves up to an 84x speedup over TreeSHAP and 5.6x over standard PFI on large datasets ($N = 20,000$).
  • Smart Complexity Gating: Automatically detects runtime workload dimensionality ($\mathcal{K} = N \cdot M \cdot R$) to bypass Python multiprocessing overhead on light tasks and scale seamlessly on heavy enterprise tables.
  • Scikit-Learn API Integration: Fully compatible with Scikit-Learn pipelines via BaseEstimator and TransformerMixin.

Installation

After the package has been published, install it from PyPI:

pip install r-ggpi

Or install the repository in editable mode, including the test dependencies:

git clone https://github.com/deepnovus/r-ggpi.git
cd r-ggpi
pip install -e ".[test]"

Run the test suite with:


Build the source distribution and wheel with:

```bash
python -m pip install build
python -m build
```bash
pytest

Metadata

Release files for r-ggpi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for r-ggpi 0.1.0
File Size Uploaded
r_ggpi-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for r-ggpi 0.1.0
File Interpreter ABI Platform
r_ggpi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / r_ggpi-0.1.0.tar.gz

Download URL r_ggpi-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e96847fa892b3f72dcfc3935aafce27a506af47d88438cb74630be4d488f4306
BLAKE2b-256 checksum
How to use checksums
6336b0a411de133fb38451a158c1ea4db64a07776ffc7c3608c9f0a5e23ed51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release files / r_ggpi-0.1.0-py3-none-any.whl

Download URL r_ggpi-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
559172f5c8fe0ab34eb493712983b2cff9d5cc5a7d9d293729ae34f47c0fcb0e
BLAKE2b-256 checksum
How to use checksums
864b6e35f490a8c4318a4dfac5d974b7f6f4231f28e0da41496c26b30aedf701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page