зеркало из https://github.com/dotnet/infer.git
Improved readability of ML.NET sample. Now aligned with https://docs.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/matchup-app-infer-net
This commit is contained in:
Родитель
5b4d609a1d
Коммит
71b2cd6354
|
@ -1622,7 +1622,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
var loserPerformance = Variable.GaussianFromMeanAndVariance(playerSkills[losers[game]], 1.0);
|
||||
|
||||
// The winner performed better in this game
|
||||
Variable.ConstrainPositive(winnerPerformance - loserPerformance);
|
||||
Variable.ConstrainTrue(winnerPerformance > loserPerformance);
|
||||
}
|
||||
|
||||
// Attach the data to the model
|
||||
|
|
Загрузка…
Ссылка в новой задаче