ChoiceOption Class
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.
This class represent option for discrete value, such as string, enum, etc..
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.ML.SearchSpace.Converter.ChoiceOptionConverter))]
public sealed class ChoiceOption : Microsoft.ML.SearchSpace.Option.OptionBase
public sealed class ChoiceOption : Microsoft.ML.SearchSpace.Option.OptionBase
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.ML.SearchSpace.Converter.ChoiceOptionConverter))>]
type ChoiceOption = class
inherit OptionBase
type ChoiceOption = class
inherit OptionBase
Public NotInheritable Class ChoiceOption
Inherits OptionBase
- Inheritance
- Attributes
Choice |
Create ChoiceOption with |
Choice |
Create ChoiceOption with |
Choices |
Get all choices. |
Default |
Gets the default value which is mapping to feature space (if exists). (Inherited from OptionBase) |
Feature |
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. |
Mapping |
mapping value to [0, 1) uniform distribution. |
Sample |
sample from [0,1) uniform distribution. |
Product | Versions |
---|---|
ML.NET | 2.0.0, 3.0.0, Preview, 4.0.0 |