Parameter Constraint Object

A constraint on the eligible parameter values for your experiment. Parameters with constraints will only suggest assignments that obey the specified constraints. See Parameter constraints for more information.

Fields

Key
Type
Value

terms

The terms that make up this constraint.

threshold

float

The threshold for this constraint. The experiment will only suggest parameters for which the weighted sum of all the terms exceeds (or is inferior, depending on the type of constraint) this threshold.

type

string

The type of constraint. It can be greater_than or less_than.

Example

{
  "terms": [
    {
      "name": "a",
      "weight": 1
    },
    {
      "name": "b",
      "weight": -1
    }
  ],
  "threshold": 0,
  "type": "greater_than"
}

Last updated