Table of Contents

Class SearchConstraint

Namespace
AiDotNet.AutoML
Assembly
AiDotNet.dll

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

string

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

bool

MaxValue

Gets or sets the maximum value for range constraints.

public double? MaxValue { get; set; }

Property Value

double?

Metadata

Gets or sets additional metadata for the constraint.

public Dictionary<string, object> Metadata { get; set; }

Property Value

Dictionary<string, object>

MinValue

Gets or sets the minimum value for range constraints.

public double? MinValue { get; set; }

Property Value

double?

Name

Gets or sets the name of the constraint.

public string Name { get; set; }

Property Value

string

ParameterNames

Gets or sets the parameter names involved in this constraint.

public List<string> ParameterNames { get; set; }

Property Value

List<string>

Type

Gets or sets the type of constraint.

public ConstraintType Type { get; set; }

Property Value

ConstraintType

Methods

Clone()

Creates a clone of this search constraint.

public object Clone()

Returns

object

A new SearchConstraint with the same values