Ejemplo n.º 1
0
        private static void Main()
        {
            try
            {
                MLContext mlContext = new MLContext(seed: 2);  //Seed set to any number so you have a deterministic environment

                CountrySalesPredictionModelPrep.TrainAndSaveModel(mlContext, CountryDataPath);
                CountrySalesPredictionModelPrep.TestPrediction(mlContext);
            }
            catch (Exception ex)
            {
                ConsoleExtensions.ConsoleWriteException(ex.Message);
            }
            ConsoleExtensions.ConsolePressAnyKey();
        }