1 write to Choices
Microsoft.ML.SearchSpace (1)
Option\ChoiceOption.cs (1)
32Choices = distinctChoices.Select(o => Parameter.FromObject(o)).ToArray();
10 references to Choices
Microsoft.ML.SearchSpace (10)
Converter\ChoiceOptionConverter.cs (1)
39Choices = value.Choices,
Option\ChoiceOption.cs (8)
33_option = new UniformSingleOption(0, Choices.Length); 55public override int FeatureSpaceDim => Choices.Length == 1 ? 0 : 1; 58public override int?[] Step => new int?[] { Choices.Length }; 68var x = Array.IndexOf(Choices, param); 80return Choices[0]; 89if (idx >= Choices.Length) 91idx = Choices.Length - 1; 93return Choices[idx];
Option\OptionBase.cs (1)
44/// <see cref="ChoiceOption.Choices"/>. And in <see cref="UniformNumericOption"/>, it's always [null]. And in <see cref="ML.SearchSpace.SearchSpace"/>, it's a combination of all <see cref="Step"/> in its options.