Share via


UniformIntOption Class

Definition

class for uniform int option.

public sealed class UniformIntOption : Microsoft.ML.SearchSpace.Option.UniformNumericOption
type UniformIntOption = class
    inherit UniformNumericOption
Public NotInheritable Class UniformIntOption
Inherits UniformNumericOption
Inheritance

Constructors

UniformIntOption(Int32, Int32, Boolean, Nullable<Int32>)

Create a UniformIntOption using min, max and defaultValue.

Properties

Default

Gets the default value which is mapping to feature space (if exists).

(Inherited from OptionBase)
FeatureSpaceDim

the dimension of feature space, which is equal to the output length of SampleFromFeatureSpace(Double[]).

(Inherited from UniformNumericOption)
LogBase

Gets if this option is log base or not.

(Inherited from UniformNumericOption)
Max

Gets maximum value of this option.

(Inherited from UniformNumericOption)
Min

Gets minimum value of this option.

(Inherited from UniformNumericOption)
Step

Gets the step of this option. The Step is used to determine the number of grid this option should be divided into. In ChoiceOption, it's always the length of Choices. And in UniformNumericOption, it's always [null]. And in SearchSpace, it's a combination of all Step in its options.

(Inherited from UniformNumericOption)

Methods

MappingToFeatureSpace(Parameter)

mapping value to [0, 1) uniform distribution.

SampleFromFeatureSpace(Double[])

sample from [0,1) uniform distribution.

Applies to