many
This package provides a general-use toolkit for frequently-implemented statistical and visual methods. See the blog post for an explanation of the purpose of this package and the methods used.
Installation
pip install many
Note: if you want to use CUDA-accelerated statistical methods (i.e. many.stats.mat_mwu_gpu), you must also independently install the corresponding version of cupy.
Components
Statistical methods
The statistical methods comprise several functions for association mining between variable pairs. These methods are optimized for pandas DataFrames and are inspired by the corrcoef function provided by numpy.
Because these functions rely on native matrix-level operations provided by numpy, many are orders of magnitude faster than naive looping-based alternatives. This makes them useful for constructing large association networks or for feature extraction, which have important uses in areas such as biomarker discovery. All methods also return estimates of statistical significance.
In certain cases such as the computation of correlation coefficients, these vectorized methods come with the caveat of numerical instability. As a compromise, "naive" loop-based implementations are also provided for testing and comparison. It is recommended that any significant results obtained with the vectorized methods be verified with these base methods.
The current functions available are listed below by variable comparison type. Benchmarks are also provided with comparisons to the equivalent looping-based method. In all methods, a melt option is provided to return the outputs as a set of row-column variable-variable pair statistic matrices or as a single DataFrame with each statistic melted to a column.
Visual methods
Several visual methods are also included for interpretation of results from the statistical methods. Like the statistical methods, these are also grouped by variable types plotted.
Development
- Install dependencies with
poetry install - Initialize environment with
poetry shell - Initialize pre-commit hooks with
pre-commit install
Metadata
Release files for many 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| many-0.7.2.tar.gz | 22.4 kB | Without provenance | Details for many-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| many-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for many-0.7.2-py3-none-any.whl |
Total release size: 50.2 kB
Release files / many-0.7.2.tar.gz
| Download URL | many-0.7.2.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5002d88c49b6bfcab3476d65675ab5e7557a9ff7ea3d09b6a6aaaf12e6b7a196
|
|
BLAKE2b-256 checksum How to use checksums |
7485a4bfeec8dbe9ebec3c56a4324c5e38e3383305f5f9e3fee78e4db6c55aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.6 Darwin/23.4.0
|
Release files / many-0.7.2-py3-none-any.whl
| Download URL | many-0.7.2-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da14b65489672d1f81ee4aa5f0362efd9cd1a012a1390d753a32a1fef06553f7
|
|
BLAKE2b-256 checksum How to use checksums |
b78fa4eb83bcfa75c289c6ae305676b2d9f93919123dfcc0130665bb2aca4986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.6 Darwin/23.4.0
|
Security for many 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.