Skip to content

Commit

Permalink
Improve description of is_interpoint field
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic authored and AVHopp committed Nov 20, 2024
1 parent c241136 commit 9cc6274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions baybe/constraints/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class ContinuousLinearConstraint(ContinuousConstraint):
)
"""Flag for defining an interpoint constraint.
An interpoint constraint is a constraint that is defined over full batches. That
is, and interpoint constraint of the form ``param_1 + 2*param_2 <=2`` means that
the sum of ``param2`` plus two times the sum of ``param_2`` across the full batch
must not exceed 2.
While intra-point constraints impose conditions on each individual point of a batch,
inter-point constraints do so **across** the points of the batch. That is, an
inter-point constraint of the form ``x_1 + x_2 <= 1`` enforces that the sum of all
``x_1`` values plus the sum of all ``x_2`` values in the batch must not exceed 1.
"""

@coefficients.validator
Expand Down

0 comments on commit 9cc6274

Please sign in to comment.