Skip to content

adaptExperimentVersionToBucketer

adaptExperimentVersionToBucketer(experiment): BasicBucketerExperiment

Translate canonical fraction weights into the bucketer’s ratio + exposure representation.

For weights whose positive sum is below one, the missing fraction remains unenrolled: [0.3, 0.3] becomes ratio 0.3:0.3 at exposure 0.6, realizing 30% / 30% / 40% unassigned. If fractions are oversubscribed (sum above one), they are normalized proportionally within traffic_allocation; this keeps the conversion total for every schema-valid vector. Zero weights are omitted, matching bucketSubject()’s established exclusion semantics.

CanonicalExperimentAllocation

BasicBucketerExperiment