Beispiel #1
0
        public void MakeEvent()
        {
            List <double>   weights = OutputConnections.Select((conn) => conn.Weight).ToList();
            NeuronEventArgs args    = new NeuronEventArgs(weights, Result);

            CountEndsEvent?.Invoke(this, args);
        }
 private static void A_NeuronEndProcess(object sender, NetRealization.Neurons.NeuronEventArgs e)
 {
     if (sender is OutputLayer)
     {
         string toOut = "";
         if (e.InputWeights != null)
         {
             toOut += $"Результат : {e.Result.ToString("N")}";
             if (e.Error != null)
             {
                 toOut += $" Ошибка : {(e.Error.Value * 100).ToString("N")}%";
             }
         }
         Console.WriteLine(toOut);
     }
 }