Metadata-Version: 2.5
Name: designate-core
Version: 0.1.0
Summary: Adaptive experimental design platform — orchestration, models, and configuration
Author-email: Drew Dimmery <pypi@ddimmery.com>
License-Expression: Apache-2.0
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.12
Requires-Dist: numpy>=1.22
Requires-Dist: onorm>=0.4
Requires-Dist: pydantic>=2.5
Provides-Extra: dolt
Requires-Dist: psycopg[binary]>=3.1; extra == 'dolt'
Provides-Extra: joblib
Requires-Dist: joblib>=1.3; extra == 'joblib'
Provides-Extra: postgres
Requires-Dist: psycopg[binary]>=3.1; extra == 'postgres'
Provides-Extra: yaml
Requires-Dist: pyyaml>=6.0; extra == 'yaml'
Description-Content-Type: text/markdown

# designate-core

Adaptive experimental design: experiment configuration, online feature
preprocessing, treatment assignment models, and the services and backends that
persist participants and model versions.

```bash
pip install designate-core            # add [yaml], [postgres], [dolt], [joblib] as needed
```

```python
from designate import DiscreteTreatments, Experiment, Feature, Numeric, ThompsonSampling

exp = Experiment(
    treatments=DiscreteTreatments(labels=["control", "treatment"]),
    covariates={"age": Numeric(min=18, max=80)},
    features={"age_s": Feature(inputs=["age"], steps=["standard"])},
    output="age_s",
    model=ThompsonSampling(),
    seed=0,
)
print(exp.assign("user-001", {"age": 32}).to_label())
exp.submit_outcome("user-001", 1)
exp.train()
```

Documentation: <https://design-ate.dev/> — [Getting Started](https://design-ate.dev/getting-started/),
[Config schema](https://design-ate.dev/reference/config-schema/),
[Custom models](https://design-ate.dev/development/custom-models/).
