1 write to Max
Microsoft.ML.AutoML (1)
PipelineSuggesters\PipelineSuggester.cs (1)
172Max = lp.Max,
15 references to Max
Microsoft.ML.AutoML (15)
Sweepers\Parameters.cs (15)
213Runtime.Contracts.Assert(args.Min < args.Max, "min must be less than max"); 229? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1)) 231var logMax = Math.Log(_args.Max, logBase); 236val = (long)(_args.Min + normalizedValue * (_args.Max - _args.Min)); 247if ((_args.StepSize == null && _args.NumSteps > (_args.Max - _args.Min)) || 250for (long i = _args.Min; i <= _args.Max; i++) 258var logBase = _args.StepSize ?? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1)); 261var maxPlusEpsilon = _args.Max * Math.Sqrt(logBase); 272var stepSize = _args.StepSize ?? (Double)(_args.Max - _args.Min) / (_args.NumSteps - 1); 274var maxPlusEpsilon = _args.Max + stepSize / 2; 309Runtime.Contracts.Assert(_args.Min <= valueTyped.Value && valueTyped.Value <= _args.Max, "Value not in correct range"); 313float logBase = (float)(_args.StepSize ?? Math.Pow(1.0 * _args.Max / _args.Min, 1.0 / (_args.NumSteps - 1))); 314return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_args.Min, logBase)) / (Math.Log(_args.Max, logBase) - Math.Log(_args.Min, logBase))); 317return (float)(valueTyped.Value - _args.Min) / (_args.Max - _args.Min); 323return (_args.Min <= valueTyped.Value && valueTyped.Value <= _args.Max);