Exemplo n.º 1
0
        /// <summary>
        /// Splits database in 2 files
        /// </summary>
        public static void SplitDatabase()
        {
            var database = RestoreObject <AIAccount>("Resources/AiDatabase");

            Console.WriteLine(database.ToList().Count);
            CsvStorage.StoreObject(database.Take(478), "Resources/TrainData"); //slightly more than 70%
            CsvStorage.StoreObject(database.Skip(478), "Resources/TestData");
        }
Exemplo n.º 2
0
 private static void StoreDatabase()
 {
     CsvStorage.StoreObject(_aiAccounts, "Resources/AiDatabase");
 }