Support nested experiment/namespace base on Facebook Planout
Project description
outplan
Support nested experiment/namespace base on PlanOut
Install
pip install outplan
Usage
from outplan import NamespaceItem, ExperimentItem, GroupItem, ExperimentGroupClient
SimpleNamespace = NamespaceItem(
name="namespace_1",
bucket=10,
experiment_items=[
ExperimentItem(
name="exp_1",
bucket=10,
group_items=[
GroupItem(name="a", weight=0.5),
GroupItem(name="b", weight=0.5),
]
),
]
)
client = ExperimentGroupClient([SimpleNamespace])
print(client.get_group("namespace_1", unit="your_unit"))
# nested experiment/namespace is defined at `tests/test_experiment.py`
Dev
# run test
make test
# commit
pip install pre-commit
# and commit here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
outplan-2.1.5.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for outplan-2.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b303dc06f481571c5999e7e4898bebc714ebad1035d29faf3d565dc939d8d6 |
|
MD5 | 5033da46f5a32726ed4c483e413bbb6a |
|
BLAKE2b-256 | c8179fe90ba1b430a97da70ed7ace3840170ef32884bd5c34da319445d4985a6 |