The `repetitions` parameter is only supported in the new experiments API via `phoenix.client` (e.g., `client.experiments.run_experiment` or `from phoenix.client.experiments import run_experiment`). The legacy `phoenix.experiments` module does not support the `repetitions` parameter—this feature was added in Phoenix 11.37.0+ and is not available in the old API <https://arize.com/docs/phoenix/datasets-and-experiments/how-to-experiments/repetitions#radix-«R25mjtt9lffffffb»|[docs>, <https://github.com/Arize-ai/phoenix/blob/main/CHANGELOG.md|changelog>, <https://github.com/Arize-ai/phoenix/blob/main/packages/phoenix-client/src/phoenix/client/experiments/__init__.py|source>].
To use repetitions, switch to the new client API as shown below:
```
from phoenix.client import Client
client = Client()
dataset = client.datasets.get_dataset(dataset="my-dataset")
experiment = client.experiments.run_experiment(
dataset=dataset,
task=my_task,
experiment_name="greeting-experiment",
repetitions=3
)
```
Would you like more detail on migrating to the new API or on how repetitions work?
Sources:
- <https://arize.com/docs/phoenix/datasets-and-experiments/how-to-experiments/repetitions#radix-«R25mjtt9lffffffb»|How to use repetitions (docs)>
- <https://github.com/Arize-ai/phoenix/blob/main/packages/phoenix-client/src/phoenix/client/experiments/__init__.py|Phoenix client experiments source>
- <https://github.com/Arize-ai/phoenix/blob/main/CHANGELOG.md|changelog>