16 writes to Max
Microsoft.ML.Sweeper (1)
Parameters.cs (1)
625generatorOptions.Max = max;
Microsoft.ML.Sweeper.Tests (15)
TestSweeper.cs (15)
32var paramSweep = new LongValueGenerator(new LongParamOptions() { Name = name, Min = min, Max = max, LogBase = logBase, StepSize = stepSize, NumSteps = numSteps }); 41var paramSweep = new LongValueGenerator(new LongParamOptions() { Name = "bla", Min = 0, Max = 17 }); 98environ => new LongValueGenerator(new LongParamOptions() { Name = "foo", Min = 10, Max = 20 })), 100environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 100, Max = 200 })) 141environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 164environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 100, LogBase = true })) 196t => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 246t => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 317t => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 368innerEnviron => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 436environ => new LongValueGenerator(new LongParamOptions() { Name = "foo", Min = 10, Max = 20, NumSteps = 3 })), 438environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 100, Max = 10000, LogBase = true, StepSize = 10 })) 546environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 602environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 1000, LogBase = true })) 654environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 1, Max = 100, LogBase = true }))
15 references to Max
Microsoft.ML.Sweeper (15)
Parameters.cs (15)
221Contracts.Check(options.Min < options.Max, "min must be less than max"); 237? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)) 239var logMax = Math.Log(_options.Max, logBase); 244val = (long)(_options.Min + normalizedValue * (_options.Max - _options.Min)); 255if ((_options.StepSize == null && _options.NumSteps > (_options.Max - _options.Min)) || 258for (long i = _options.Min; i <= _options.Max; i++) 266var logBase = _options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)); 269var maxPlusEpsilon = _options.Max * Math.Sqrt(logBase); 280var stepSize = _options.StepSize ?? (Double)(_options.Max - _options.Min) / (_options.NumSteps - 1); 282var maxPlusEpsilon = _options.Max + stepSize / 2; 317Contracts.Check(_options.Min <= valueTyped.Value && valueTyped.Value <= _options.Max, "Value not in correct range"); 321float logBase = (float)(_options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1))); 322return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_options.Min, logBase)) / (Math.Log(_options.Max, logBase) - Math.Log(_options.Min, logBase))); 325return (float)(valueTyped.Value - _options.Min) / (_options.Max - _options.Min); 332return (_options.Min <= valueTyped.Value && valueTyped.Value <= _options.Max);