GENAI EVALUATION
GenAI Evaluation is a library which contains methods to evaluate differences in Real and Synthetic Data.
Functions
- multivariate_ecdf: Computes joint or multivariate ECDF in contrast to the univariate capabilities provided by packages like statsmodels
- ks_statistic: Calculates the KS Statistic for two multivariate ECDFs
Authors
- Dr. Vincent Granville - Research
- Rajiv Iyer - Development/Maintenance
Installation
The package can be installed with
pip install genai_evaluation
Tests
The test can be run by cloning the repo and running:
pytest tests
In case of any issues running the tests, please run them after installing the package locally:
pip install -e .
Usage
Start by importing the class
from genai_evaluation import multivariate_ecdf, ks_statistic
Assuming we have two pandas dataframes (Real & Synthetic) and only numerical columns, we pass them to the multivariate_ecdf function which returns the computed multivariate ECDFs of both.
query_str, ecdf_real, ecdf_synth = multivariate_ecdf(real_data, synthetic_data, n_nodes = 1000, verbose = True)
We then calculate the multivariate KS Distance between the ECDFs
ks_stat = ks_statistic(ecdf_real, ecdf_synth)
Motivation
The motivation for this package comes from Dr. Vincent Granville's paper Generative AI Technology Break-through: Spectacular Performance of New Synthesizer
If you have any tips or suggestions, please contact us on email.
History
0.1.0 (2023-09-11)
- First release on PyPI.
0.1.1 (2023-09-11)
Corrected
- Function name from compute_ecdf to multivariate_ecdf
0.1.2 (2023-09-11)
Enhanced
- Added a new parameter verbose in multivariate ECDF function
0.1.3 (2023-09-11)
Corrected
- Removed unecessary docstrings from code
0.1.4 (2023-09-11)
Fixed
- Resolved issues with special characters in the column names
0.1.5 (2023-09-11)
Fixed
- Earlier version considered underscore as a special character. That is rectified in this version
Metadata
Release files for genai-evaluation 0.1.5
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 |
|---|---|---|---|---|
| genai_evaluation-0.1.5.tar.gz | 8.0 kB | Without provenance | Details for genai_evaluation-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genai_evaluation-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for genai_evaluation-0.1.5-py2.py3-none-any.whl |
Total release size: 14.0 kB
Release files / genai_evaluation-0.1.5.tar.gz
| Download URL | genai_evaluation-0.1.5.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b23f7f2b118a7a5f6f6fbe3791574a44533e23bede66089cc91e4d1ed2f7bcb9
|
|
BLAKE2b-256 checksum How to use checksums |
d5bb04c2269abf2fcde09e74ba597a621c9bc26c9c44200ef8899d9947cd4876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / genai_evaluation-0.1.5-py2.py3-none-any.whl
| Download URL | genai_evaluation-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2c3c2f6a53d73e1fbb32a7937b412676726e092d9563a075085d5e03e29d755d
|
|
BLAKE2b-256 checksum How to use checksums |
37cc66fc6a057d77ab19120e64f63d99e8841fea635c34d38b60239580d29359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for genai-evaluation 0.1.5
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.