Experiment manager
ExperimentManager #
Internal: creates attached-scope experiments and launches jobs under them.
Not part of the public SDK surface — Rapidata-internal, undocumented.
Source code in src/rapidata/rapidata_client/experiment/experiment_manager.py
create #
create(
*,
name: str,
treatment_bps: int = 5000,
flags: list[FeatureFlag] | None = None,
user_enrollment: ExperimentUserEnrollment = STICKY,
description: str = ""
) -> Experiment
Creates and activates an attached-scope experiment.
The experiment is created in the draft state and immediately activated, so
it is already serving by the time this returns — meant to be paired with
meth:
run_experiment, which attaches it to the job's campaign before
that campaign can serve.
Source code in src/rapidata/rapidata_client/experiment/experiment_manager.py
run_experiment #
run_experiment(config: ExperimentConfig) -> RapidataJob
Launches config.job_definition on config.audience under the experiment.
Raises:
| Type | Description |
|---|---|
ValueError
|
If |