Table of Contents

Class ParameterRange

Namespace
AiDotNet.AutoML
Assembly
AiDotNet.dll

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

List<object>

DefaultValue

Default value for the parameter

public object? DefaultValue { get; set; }

Property Value

object

MaxValue

The maximum value for numeric parameters

public object? MaxValue { get; set; }

Property Value

object

MinValue

The minimum value for numeric parameters

public object? MinValue { get; set; }

Property Value

object

Step

The step size for discrete parameters

public double? Step { get; set; }

Property Value

double?

Type

The type of parameter (Integer, Float, Boolean, Categorical, etc.)

public ParameterType Type { get; set; }

Property Value

ParameterType

UseLogScale

Whether to use logarithmic scale for sampling

public bool UseLogScale { get; set; }

Property Value

bool

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