Class SearchConstraint
Defines a constraint for AutoML search to limit the search space or enforce requirements.
public class SearchConstraint : ICloneable
- Inheritance
-
SearchConstraint
- Implements
- Inherited Members
Properties
Expression
Gets or sets the constraint expression or rule.
public string Expression { get; set; }
Property Value
IsHardConstraint
Gets or sets whether this constraint is a hard constraint (must be satisfied) or soft constraint (preferred).
public bool IsHardConstraint { get; set; }
Property Value
MaxValue
Gets or sets the maximum value for range constraints.
public double? MaxValue { get; set; }
Property Value
Metadata
Gets or sets additional metadata for the constraint.
public Dictionary<string, object> Metadata { get; set; }
Property Value
MinValue
Gets or sets the minimum value for range constraints.
public double? MinValue { get; set; }
Property Value
Name
Gets or sets the name of the constraint.
public string Name { get; set; }
Property Value
ParameterNames
Gets or sets the parameter names involved in this constraint.
public List<string> ParameterNames { get; set; }
Property Value
Type
Gets or sets the type of constraint.
public ConstraintType Type { get; set; }
Property Value
Methods
Clone()
Creates a clone of this search constraint.
public object Clone()
Returns
- object
A new SearchConstraint with the same values