pygini
Very simple module that computes the Gini index of a numpy array.
Installation
pip install pygini
Usage
import numpy as np
from pygini import gini
RG = np.random.default_rng(0)
A = RG.random(100)
GI = gini(A)
# Also compute along axis
A = RG.random((100, 80, 80))
GI = gini(A, axis=0)
# GI.shape = (80, 80)
See examples directory.
Metadata
Release files for pygini 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygini-1.0.1.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygini-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / pygini-1.0.1.tar.gz
| Download URL | pygini-1.0.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e484a59158f1343fd550c75573f278aa17b55ee05837ed4a9b77565470636e4b
|
|
BLAKE2b-256 checksum How to use checksums |
ad857d4c33af7f26a43621cb156e3f06bca05eb82cb2c9587b05a0a290ce8941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
|
Release files / pygini-1.0.1-py3-none-any.whl
| Download URL | pygini-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b130594430bb9047065b66531ab70eb5f9d944af13db985215bc804f677bd53e
|
|
BLAKE2b-256 checksum How to use checksums |
1c5f079f36cbfe4410f0d53232e192d01c78489dff52a1589a44c16c02e2a46e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
|