OptionBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
abstrace class for Option.
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.ML.SearchSpace.Converter.OptionConverter))]
public abstract class OptionBase
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.ML.SearchSpace.Converter.OptionConverter))>]
type OptionBase = class
Public MustInherit Class OptionBase
- Inheritance
-
OptionBase
- Derived
- Attributes
Constructors
OptionBase() |
Properties
Default |
Gets the default value which is mapping to feature space (if exists). |
FeatureSpaceDim |
the dimension of feature space, which is equal to the output length of SampleFromFeatureSpace(Double[]). |
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. |
Methods
MappingToFeatureSpace(Parameter) |
mapping value to [0, 1) uniform distribution. |
SampleFromFeatureSpace(Double[]) |
sample from [0,1) uniform distribution. |