HyperparameterSearchSpace

Models & Types · AiDotNet.Models

Defines the search space for hyperparameter optimization.

How It Works

For Beginners: A search space defines all possible values for each hyperparameter. For example, learning rate might be between 0.001 and 0.1, and batch size might be 16, 32, or 64.

Constructors

Constructor Summary
HyperparameterSearchSpace() Initializes a new instance of the HyperparameterSearchSpace class.

Properties

Property Summary
Dictionary<string, ParameterDistribution> Parameters { get; set; } Gets or sets the parameter distributions/ranges.

Methods

Method Summary
void AddBoolean(string name) Adds a boolean parameter.
void AddCategorical(string name, object[] choices) Adds a categorical parameter (discrete choices).
void AddContinuous(string name, double min, double max, bool logScale) Adds a continuous (real-valued) parameter.
void AddInteger(string name, int min, int max, int step) Adds an integer parameter.