1 write to LowerIsBetter
Microsoft.ML.FastTree (1)
Training\EarlyStoppingCriteria.cs (1)
89LowerIsBetter = lowerIsBetter;
12 references to LowerIsBetter
Microsoft.ML.FastTree (12)
Training\EarlyStoppingCriteria.cs (12)
82Contracts.Assert((LowerIsBetter && value <= _bestScore) || value >= _bestScore); 90_bestScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 108bool isBestEver = ((score > BestScore) != LowerIsBetter); 166if (LowerIsBetter) 250float recentBestScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 253if ((score > recentBestScore) != LowerIsBetter) 336if (LowerIsBetter) 394if (LowerIsBetter) 451if (LowerIsBetter) 501_prevScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 509_prevScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 521_count = ((validationScore < _prevScore) != LowerIsBetter) ? _count + 1 : 0;