Skip to content

Commit

Permalink
Add alias for is_interpoint field
Browse files Browse the repository at this point in the history
  • Loading branch information
AVHopp committed Nov 20, 2024
1 parent e754028 commit c241136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion baybe/constraints/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class ContinuousLinearConstraint(ContinuousConstraint):
rhs: float = field(default=0.0, converter=float, validator=finite_float)
"""Right-hand side value of the in-/equality."""

is_interpoint: bool = field(default=False, validator=instance_of(bool))
is_interpoint: bool = field(
alias="interpoint", default=False, validator=instance_of(bool)
)
"""Flag for defining an interpoint constraint.
An interpoint constraint is a constraint that is defined over full batches. That
Expand Down

0 comments on commit c241136

Please sign in to comment.