Exemple #1
0
 private static void Model_EpochEnd(object sender, EpochEndEventArgs e)
 {
     if (e.ValidationLoss > 0)
     {
         Console.WriteLine("Epoch: {0}, Samples/sec: {1}, Loss: {2}, Acc: {3}, Val_Loss: {4}, Val_Acc: {5}, Elapse: {6}", e.Epoch, e.SamplesSeen, e.Loss, e.Metric, e.ValidationLoss, e.ValidationMetric, e.Duration);
     }
     else
     {
         Console.WriteLine("Epoch: {0}, Samples/sec: {1}, Loss: {2}, Acc: {3}, Elapse: {4}", e.Epoch, e.SamplesSeen, e.Loss, e.Metric, e.Duration);
     }
 }
        private void WorkerThread_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            EpochEndEventArgs epochEndEventArgs = (EpochEndEventArgs)e.UserState;

            txtConsole.AppendText(string.Format("Iteration: {0}, Loss: {1}, Metric: {2}"
                                                , epochEndEventArgs.Epoch, epochEndEventArgs.Loss, epochEndEventArgs.Metric));
            txtConsole.AppendText("\n");

            DataRow dr = trainingData.NewRow();

            dr["Iteration"] = epochEndEventArgs.Epoch;
            dr["Loss"]      = epochEndEventArgs.Loss;
            dr["Metric"]    = epochEndEventArgs.Metric;
            trainingData.Rows.Add(dr);
            chartTraining.DataBind();
            chartTraining.Update();
        }
Exemple #3
0
 private static void Model_EpochEnd(object sender, EpochEndEventArgs e)
 {
     Console.WriteLine("Epoch: {0}, Loss: {1}, Metric: {2}, Duration: {3}ms", e.Epoch, e.Loss, e.Metric, e.Duration);
 }
Exemple #4
0
 private static void Model_EpochEnd(object sender, EpochEndEventArgs e)
 {
     Console.WriteLine(string.Format("Iteration: {0}, Loss: {1}, Metric: {2}, Duration: {3}"
                                     , e.Epoch, e.Loss, e.Metric, e.Duration));
 }
Exemple #5
0
 private static void Model_EpochEnd(object?sender, EpochEndEventArgs e)
 {
     ConsoleUI.WriteLine(e.ToString());
 }
Exemple #6
0
 private static void Model_EpochEnd(object sender, EpochEndEventArgs e)
 {
     Console.WriteLine("Epoch: {0}, Loss: {1}, Acc: {2}", e.Epoch, e.Loss, e.Metric);
 }
 private void Model_BatchEnd(object sender, EpochEndEventArgs e)
 {
     WorkerThread.ReportProgress(10, e);
 }