19 instantiations of UniformIntOption
Microsoft.ML.AutoML.Samples (2)
Sweepable\SearchSpaceExample.cs (2)
23myParameterSearchSpace2["IntOption"] = new UniformIntOption(min: -10, max: 10, logBase: false, defaultValue: 0); 33nestedSearchSpace["IntOption"] = new UniformIntOption(min: -10, max: 10, logBase: false, defaultValue: 0);
Microsoft.ML.SearchSpace (5)
Converter\NumericOptionConverter.cs (1)
43"int" => new UniformIntOption(Convert.ToInt32(schema.Min), Convert.ToInt32(schema.Max), schema.LogBase, Convert.ToInt32(schema.Default)),
SearchSpace.cs (4)
222(int min, int max, int init, bool logBase) => new UniformIntOption(min, max, logBase, init), 223(int min, int max, null, bool logBase) => new UniformIntOption(min, max, logBase), 269(int min, int max, int init, bool logBase) => new UniformIntOption(min, max, logBase, init), 270(int min, int max, null, bool logBase) => new UniformIntOption(min, max, logBase),
Microsoft.ML.SearchSpace.Tests (12)
SearchSpaceTest.cs (7)
134ss.Add("A", new UniformIntOption(-1000, 1000)); 221searchSpace.Add("int", new UniformIntOption(0, 1)); 224anotherNestOption["int"] = new UniformIntOption(2, 3); 246searchSpace.Add("int", new UniformIntOption(0, 1)); 259searchSpace["a"] = new UniformIntOption(0, 1); 260searchSpace["b"] = new UniformIntOption(1, 2); 261searchSpace["c"] = new UniformIntOption(2, 3);
UniformNumericOptionTests.cs (5)
23var option = new UniformIntOption(0, 100); 34var option = new UniformIntOption(1, 1024, true); 45var option = new UniformIntOption(0, 100); 56var option = new UniformIntOption(20, 1024, defaultValue: 20, logBase: true); 63var option = new UniformIntOption(1, 1024, true);
7 references to UniformIntOption
Microsoft.ML.SearchSpace (2)
Converter\NumericOptionConverter.cs (1)
54UniformIntOption intOption => new Schema
Option\UniformNumericOption.cs (1)
161/// Create a <see cref="UniformIntOption"/> using <paramref name="min"/>, <paramref name="max"/> and <paramref name="defaultValue"/>.
Microsoft.ML.SearchSpace.Tests (5)
UniformNumericOptionTests.cs (5)
23var option = new UniformIntOption(0, 100); 34var option = new UniformIntOption(1, 1024, true); 45var option = new UniformIntOption(0, 100); 56var option = new UniformIntOption(20, 1024, defaultValue: 20, logBase: true); 63var option = new UniformIntOption(1, 1024, true);