//Will generate the feature matrix associated to all the football games present in the database. //May take up to 5 hours to finish when considering all games from season 2001-02 until now public static void Main() { CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-us"); FeatureMatrixGenerator featureMatrixGenerator = new FeatureMatrixGenerator(@"..\..\..\output\features.csv"); featureMatrixGenerator.Execute(); featureMatrixGenerator.PrintFeatureMatrix(); }
public void ExecuteSingle() { //NOTE: DB should be populated for season 2016-17 before executing the test. string resultsFilePath = @"..\..\..\test_data\TestFeatureMatrixGenerator\features.csv"; string comparisonFilePath = @"..\..\..\test_data\TestFeatureMatrixGenerator\features_comparison.csv"; FeatureMatrixGenerator featureMatrixGenerator = new FeatureMatrixGenerator(resultsFilePath); featureMatrixGenerator.ProcessSingle(2016, "primera"); featureMatrixGenerator.PrintFeatureMatrix(); Assert.Equal(Utils.GenerateFileHash(resultsFilePath), Utils.GenerateFileHash(comparisonFilePath)); }