5 writes to StepSize
Microsoft.ML.Sweeper (2)
Parameters.cs (2)
627generatorOptions.StepSize = (stepSize > 0 ? stepSize : new Nullable<Double>()); 651floatOptions.StepSize = (stepSize > 0 ? stepSize : new Nullable<Double>());
Microsoft.ML.Sweeper.Tests (3)
TestSweeper.cs (3)
32var paramSweep = new LongValueGenerator(new LongParamOptions() { Name = name, Min = min, Max = max, LogBase = logBase, StepSize = stepSize, NumSteps = numSteps }); 59var paramSweep = new FloatValueGenerator(new FloatParamOptions() { Name = name, Min = min, Max = max, LogBase = logBase, StepSize = stepSize, NumSteps = numSteps }); 438environ => new LongValueGenerator(new LongParamOptions() { Name = "bar", Min = 100, Max = 10000, LogBase = true, StepSize = 10 }))
21 references to StepSize
Microsoft.ML.Sweeper (21)
Parameters.cs (21)
224Contracts.Check(!options.LogBase || options.StepSize == null || options.StepSize > 1, "StepSize must be greater than 1 if log scale is used"); 225Contracts.Check(options.LogBase || options.StepSize == null || options.StepSize > 0, "StepSize must be greater than 0 if linear scale is used"); 236var logBase = !_options.StepSize.HasValue 238: _options.StepSize.Value; 255if ((_options.StepSize == null && _options.NumSteps > (_options.Max - _options.Min)) || 256(_options.StepSize != null && _options.StepSize <= 1)) 266var logBase = _options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)); 280var stepSize = _options.StepSize ?? (Double)(_options.Max - _options.Min) / (_options.NumSteps - 1); 321float logBase = (float)(_options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1))); 356Contracts.Check(!options.LogBase || options.StepSize == null || options.StepSize > 1, "StepSize must be greater than 1 if log scale is used"); 357Contracts.Check(options.LogBase || options.StepSize == null || options.StepSize > 0, "StepSize must be greater than 0 if linear scale is used"); 368var logBase = !_options.StepSize.HasValue 370: _options.StepSize.Value; 390var logBase = _options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)); 404var stepSize = _options.StepSize ?? (Double)(_options.Max - _options.Min) / (_options.NumSteps - 1); 445float logBase = (float)(_options.StepSize ?? Math.Pow(1.0 * _options.Max / _options.Min, 1.0 / (_options.NumSteps - 1)));