Ambrosia
Ambrosia is a Python library for A/B tests design, split and effect measurement. It provides rich set of methods for conducting full A/B testing pipeline.
The project is intended for use in research and production environments based on data in pandas and Spark format.
Key functionality
Pilots design 🛫
Multi-group split 🎳
Matching of new control group to the existing pilot 🎏
Experiments result evaluation as p-value, point estimate of effect and confidence interval 🎞
Data preprocessing ✂️
Experiments acceleration 🎢
Documentation
For more details, see the Documentation and Tutorials.
Installation
Requirements: Python 3.9+
You can always get the newest Ambrosia release using pip. Stable version is released on every tag to main branch.
pip install ambrosia
Starting from version 0.4.0, the ability to process PySpark data is optional and can be enabled using pip extras during the installation.
pip install ambrosia[spark]
Usage
The main functionality of Ambrosia is contained in several core classes and methods, which are autonomic for each stage of an experiment and have very intuitive interface.
Below is a brief overview example of using a set of three classes to conduct some simple experiment.
Designer
from ambrosia.designer import Designer
designer = Designer(dataframe=df, effects=1.2, metrics='portfel_clc') # 20% effect, and loaded data frame df
designer.run('size')
Splitter
from ambrosia.splitter import Splitter
splitter = Splitter(dataframe=df, id_column='id') # loaded data frame df with column with id - 'id'
splitter.run(groups_size=500, method='simple')
Tester
from ambrosia.tester import Tester
tester = Tester(dataframe=df, column_groups='group') # loaded data frame df with groups info 'group'
tester.run(metrics='retention', method='theory', criterion='ttest')
Development
To install all requirements run
make install
You must have python3 and poetry installed.
For autoformatting run
make autoformat
For linters check run
make lint
For tests run
make test
For coverage run
make coverage
To remove virtual environment run
make clean
Metadata
Release files for Ambrosia 0.5.3.post1
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 |
|---|---|---|---|---|
| ambrosia-0.5.3.post1.tar.gz | 93.9 kB | Without provenance | Details for ambrosia-0.5.3.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ambrosia-0.5.3.post1-py3-none-any.whl | Python 3 | none | any | Details for ambrosia-0.5.3.post1-py3-none-any.whl |
Total release size: 225.4 kB
Release files / ambrosia-0.5.3.post1.tar.gz
| Download URL | ambrosia-0.5.3.post1.tar.gz |
|---|---|
| Size | 93.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97e122a437bd956683b4a60e2b6e8355a40f7fab009410e940fcb89af7659e39
|
|
BLAKE2b-256 checksum How to use checksums |
71fcf3857dd119573c2f3b6f823fbcff1a06be2368ff3d8c85c06aae985b07dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Linux/6.17.0-1015-azure
|
Release files / ambrosia-0.5.3.post1-py3-none-any.whl
| Download URL | ambrosia-0.5.3.post1-py3-none-any.whl |
|---|---|
| Size | 131.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b60319fa7f7b3a63646fdd70e8daab3be39015d94bd6b967415c39b802c01ea
|
|
BLAKE2b-256 checksum How to use checksums |
af46b5f98ea5c1c4ea77326590424cc67ab7f609176ef3f9f63929530c5139ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.15 Linux/6.17.0-1015-azure
|
Security for Ambrosia 0.5.3.post1
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.