12 writes to Max
Microsoft.ML.Sweeper (1)
Parameters.cs (1)
649floatOptions.Max = maxF;
Microsoft.ML.Sweeper.Tests (11)
TestSweeper.cs (11)
59var paramSweep = new FloatValueGenerator(new FloatParamOptions() { Name = name, Min = min, Max = max, LogBase = logBase, StepSize = stepSize, NumSteps = numSteps }); 68var paramSweep = new FloatValueGenerator(new FloatParamOptions() { Name = "bla", Min = 1, Max = 5 }); 139environ => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5 })), 162environ => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 194t => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 244t => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 315t => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 366innerEnviron => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 544environ => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 600environ => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})), 652environ => new FloatValueGenerator(new FloatParamOptions() { Name = "foo", Min = 1, Max = 5})),
13 references to Max
Microsoft.ML.Sweeper (13)
Parameters.cs (13)
353Contracts.Check(options.Min < options.Max, "min must be less than max"); 369? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)) 371var logMax = Math.Log(_options.Max, logBase); 376val = (float)(_options.Min + normalizedValue * (_options.Max - _options.Min)); 390var logBase = _options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)); 393var maxPlusEpsilon = _options.Max * Math.Sqrt(logBase); 404var stepSize = _options.StepSize ?? (Double)(_options.Max - _options.Min) / (_options.NumSteps - 1); 406var maxPlusEpsilon = _options.Max + stepSize / 2; 441Contracts.Check(_options.Min <= valueTyped.Value && valueTyped.Value <= _options.Max, "Value not in correct range"); 445float logBase = (float)(_options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1))); 446return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_options.Min, logBase)) / (Math.Log(_options.Max, logBase) - Math.Log(_options.Min, logBase))); 449return (valueTyped.Value - _options.Min) / (_options.Max - _options.Min); 456return (_options.Min <= valueTyped.Value && valueTyped.Value <= _options.Max);