1 write to _args
Microsoft.ML.AutoML (1)
Sweepers\Parameters.cs (1)
344_args = args;
44 references to _args
Microsoft.ML.AutoML (44)
Sweepers\Parameters.cs (44)
335public string Name { get { return _args.Name; } } 351if (_args.LogBase) 354var logBase = !_args.StepSize.HasValue 355? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1)) 356: _args.StepSize.Value; 357var logMax = Math.Log(_args.Max, logBase); 358var logMin = Math.Log(_args.Min, logBase); 359val = (float)(_args.Min * Math.Pow(logBase, normalizedValue * (logMax - logMin))); 362val = (float)(_args.Min + normalizedValue * (_args.Max - _args.Min)); 364return new FloatParameterValue(_args.Name, val); 373if (_args.LogBase) 376var logBase = _args.StepSize ?? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1)); 379var maxPlusEpsilon = _args.Max * Math.Sqrt(logBase); 380for (Double value = _args.Min; value <= maxPlusEpsilon; value *= logBase) 384result.Add(new FloatParameterValue(_args.Name, floatValue)); 390var stepSize = _args.StepSize ?? (Double)(_args.Max - _args.Min) / (_args.NumSteps - 1); 392var maxPlusEpsilon = _args.Max + stepSize / 2; 393for (Double value = _args.Min; value <= maxPlusEpsilon; value += stepSize) 397result.Add(new FloatParameterValue(_args.Name, floatValue)); 427Runtime.Contracts.Assert(_args.Min <= valueTyped.Value && valueTyped.Value <= _args.Max, "Value not in correct range"); 429if (_args.LogBase) 431float logBase = (float)(_args.StepSize ?? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1))); 432return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_args.Min, logBase)) / (Math.Log(_args.Max, logBase) - Math.Log(_args.Min, logBase))); 435return (valueTyped.Value - _args.Min) / (_args.Max - _args.Min); 442return (_args.Min <= valueTyped.Value && valueTyped.Value <= _args.Max);