Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mlConfigPath"></param>
 public static Dictionary <string, List <Tuple <int, float, float, float, float> > > ShowTrainingHistory(string mlConfigPath)
 {
     try
     {
         var mlConfigId  = MLFactory.GetMLConfigId(mlConfigPath);
         var historyPath = MLFactory.GetTrainingHistoryPath(mlConfigPath, mlConfigId);
         //read history from file
         //load history of training in case continuation of training is requested
         var historyData   = MLFactory.LoadTrainingHistory(historyPath);
         var historyHeader = File.ReadAllLines(historyPath).FirstOrDefault();
         //create graph for Training and validation set
         var d = new Dictionary <string, List <Tuple <int, float, float, float, float> > >();
         d.Add(historyHeader, historyData);
         return(d);
     }
     catch (Exception)
     {
         throw;
     }
 }