Assign experiment cells
assign_cellsDeterministically assigns unit IDs to experiment arms using a salted SHA-256 hash, ensuring consistent bucketing for the same salt and unit without writing an experiment record.
Instructions
Assign units to arms with a salted SHA-256 bucket.
Arms are ordered by name. The same salt and unit id always map to the same arm. This does not write an experiment record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | Experiment salt. Changing it reassigns units. | |
| splits | Yes | Arm name to traffic weight. Weights must sum to 1. | |
| unit_ids | Yes | Stable unit ids, usually customer ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | ||
| counts | Yes | ||
| arm_order | Yes | ||
| assignments | Yes |