data_designer.config.sampler_constraints
data_designer.config.sampler_constraints
data_designer.config.sampler_constraints
ColumnConstraintT
ColumnConstraintInputT
Bases: str, enum.Enum
Bases: str, enum.Enum
Bases: data_designer.config.base.ConfigBase, abc.ABC
Base class for sampler constraints. Use a concrete subclass, not this class directly.
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.sampler_constraints.Constraint
Constrain a sampler column to be less/greater than a scalar value.
Only applies to sampler columns.
Parameters:
Scalar value to compare against.
Comparison operator (lt, le, gt, ge).
Inherited Attributes: target_column (required): Name of the sampler column this constraint applies to. Attributes:
Scalar value to compare against.
Comparison operator (lt, le, gt, ge).
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.sampler_constraints.Constraint
Constrain a sampler column to be less/greater than another sampler column.
Only applies to sampler columns.
Parameters:
Name of the other sampler column to compare against.
Comparison operator (lt, le, gt, ge).
Inherited Attributes: target_column (required): Name of the sampler column this constraint applies to. Attributes:
Name of the other sampler column to compare against.
Comparison operator (lt, le, gt, ge).
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Resolve the constraint type for both tagged and legacy config shapes.