Class ParameterRange
Defines the range and type of a hyperparameter for AutoML search
public class ParameterRange : ICloneable
- Inheritance
-
ParameterRange
- Implements
- Inherited Members
Properties
CategoricalValues
List of possible values for categorical parameters
public List<object>? CategoricalValues { get; set; }
Property Value
DefaultValue
Default value for the parameter
public object? DefaultValue { get; set; }
Property Value
MaxValue
The maximum value for numeric parameters
public object? MaxValue { get; set; }
Property Value
MinValue
The minimum value for numeric parameters
public object? MinValue { get; set; }
Property Value
Step
The step size for discrete parameters
public double? Step { get; set; }
Property Value
Type
The type of parameter (Integer, Float, Boolean, Categorical, etc.)
public ParameterType Type { get; set; }
Property Value
UseLogScale
Whether to use logarithmic scale for sampling
public bool UseLogScale { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of the ParameterRange, including deep cloning of reference-type properties
public object Clone()
Returns
- object
A deep clone of this ParameterRange
Remarks
This method performs deep cloning for all properties:
- MinValue, MaxValue, DefaultValue: Deep cloned if they implement ICloneable, otherwise copied by reference (safe for value types and strings)
- CategoricalValues: Each element is deep cloned if it implements ICloneable, otherwise copied by reference