Example #1
0
        private static void TestWinnerPrediction()
        {
            var game = new Winner.ModelInput()
            {
                Team1GoalKeeper = "Philipp",
                Team1Striker    = "Michael",
                Team2GoalKeeper = "Roman",
                Team2Striker    = "Markus",
                Weekday         = "Monday",
                Hour            = 12
            };

            Winner.ModelOutput predictionResult = Winner.ConsumeModel.Predict(game);

            Console.WriteLine("========== Winner Prediction ==========");
            Console.WriteLine($"{game.Team1GoalKeeper} + {game.Team1Striker} vs. {game.Team2GoalKeeper} + {game.Team2Striker}");
            Console.WriteLine($"Model Result: {predictionResult.Score[0]:P2} : {predictionResult.Score[1]:P2}");
        }