5 instantiations of ChoiceAttribute
Microsoft.ML.AutoML.Samples (1)
Sweepable\SearchSpaceExample.cs (1)
54[Choice("a", "b", "c")]
Microsoft.ML.AutoML.Tests (1)
GridSearchTunerTests.cs (1)
66[Choice("a", "b", "c")]
Microsoft.ML.SearchSpace.Tests (3)
SearchSpaceTest.cs (3)
332[Choice("a", "b", "c", "d")] 335[Choice(1, 2, 3, 4)] 347[Choice(new object[] { JsonTokenType.None, JsonTokenType.EndObject, JsonTokenType.StartArray, JsonTokenType.Null }, defaultValue: JsonTokenType.Null)]
8 references to ChoiceAttribute
Microsoft.ML.Core (2)
SearchSpace\ChoiceAttribute.cs (2)
18/// Create a <see cref="ChoiceAttribute"/> with <paramref name="candidates"/>. 29/// Create a <see cref="ChoiceAttribute"/> with <paramref name="candidates"/> and <paramref name="defaultValue"/>.
Microsoft.ML.SearchSpace (6)
Assembly.cs (1)
12[assembly: TypeForwardedTo(typeof(Microsoft.ML.SearchSpace.ChoiceAttribute))]
SearchSpace.cs (5)
200var choiceAttributes = field.GetCustomAttributes(typeof(ChoiceAttribute), false); 217ChoiceAttribute choice => choice.DefaultValue == null ? new ChoiceOption(choice.Candidates) : new ChoiceOption(choice.Candidates, defaultChoice: choice.DefaultValue), 247var choiceAttributes = property.GetCustomAttributes(typeof(ChoiceAttribute), false); 264ChoiceAttribute choice => choice.DefaultValue == null ? new ChoiceOption(choice.Candidates) : new ChoiceOption(choice.Candidates, defaultChoice: choice.DefaultValue), 301if (attribute is ChoiceAttribute)