Exemple #1
0
 private static string NodeAsString(Node node)
 {
     var neuron = node as ActivationNeuron;
     if (neuron != null)
     {
         return neuron.Bias.ToString("0.00");
     }
     else
     {
         return "Network";
     }
 }
Exemple #2
0
 private static string GetNodeName(Node node)
 {
     var gate = node as LogicGate;
     if (gate != null)
     {
         return gate.Type.ToString();
     }
     else
     {
         return "Network";
     }
 }