Table of Contents

Class ContinuousDistribution

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Represents a continuous (real-valued) parameter distribution.

public class ContinuousDistribution : ParameterDistribution
Inheritance
ContinuousDistribution
Inherited Members

Properties

DistributionType

Gets the type of distribution.

public override string DistributionType { get; }

Property Value

string

LogScale

Gets or sets whether to use log scale for sampling.

public bool LogScale { get; set; }

Property Value

bool

Remarks

For Beginners: Log scale is useful for parameters that span several orders of magnitude, like learning rate (0.0001 to 0.1). It ensures you sample evenly across the range.

Max

Gets or sets the maximum value.

public double Max { get; set; }

Property Value

double

Min

Gets or sets the minimum value.

public double Min { get; set; }

Property Value

double

Methods

Sample(Random)

Samples a value from this distribution.

public override object Sample(Random random)

Parameters

random Random

Returns

object