Hyppo is a comprehensive independence testing package in Python, currently at version 0.5.2. It provides a wide array of statistical tests for evaluating independence, k-sample, and goodness-of-fit problems. The library has an active development cycle, with major releases bringing significant new features and bug fixes, typically every 12-16 months, complemented by more frequent patch releases.
pip install hyppoVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to use the Hilbert-Schmidt Independence Criterion (HSIC) to test the independence between two sets of data, `x` and `y`.
Upgrade your Python environment to 3.8+ or pin `hyppo` to a version less than 0.5.0 (e.g., `pip install 'hyppo<0.5.0'`).
For custom `DifferentiableKernel` subclasses, ensure you explicitly implement the `gradient` method with the desired differentiation logic. Do not rely on `autograd` to implicitly provide it.
Manually install `autograd`: `pip install autograd`. Ensure your Python environment is clean or use a virtual environment.
Install `autograd` explicitly: `pip install autograd`.
Upgrade your Python interpreter to version 3.8 or newer, or downgrade Hyppo to version 0.4.x or older: `pip install 'hyppo<0.5.0'`.
Implement the `gradient` method within your `MyCustomKernel` class to define how its gradients are computed.