Exemple #1
0
 public Neuron(ActivationFunctions func, NeuronTag tag, Dictionary <string, double> inputs)
 {
     Inputs  = new Dictionary <string, double>(inputs);
     ActFunc = func;
     Set     = false;
     Id      = "";
     Set     = false;
     Result  = 0;
     Tag     = tag;
 }
Exemple #2
0
 public Neuron()
 {
     Inputs  = new Dictionary <string, double>();
     ActFunc = ActivationFunctions.Sigmoid;
     Set     = false;
     Id      = "";
     Set     = false;
     Result  = 0;
     Tag     = NeuronTag.hidden;
 }