Beispiel #1
0
        public List <Couche> GenerateNetwork(List <Couche> _couches, List <double> _variables)
        {
            for (int i = 0; i < _couches.Count; i++)
            {
                if (i == 0)
                {
                    foreach (Neurone _neurone in _couches[i].Neurones)
                    {
                        foreach (double _variable in _variables)
                        {
                            NeuroneHelper.CreateLiaison(_neurone, _variable);
                        }
                    }
                }
                else
                {
                    foreach (Neurone _neurone in _couches[i].Neurones)
                    {
                        foreach (Neurone _previousNeurone in _couches[i - 1].Neurones)
                        {
                            NeuroneHelper.CreateLiaison(_neurone, _previousNeurone);
                        }
                    }
                }
            }

            return(_couches);
        }
Beispiel #2
0
 public void ChangeVariables(List <Couche> _couches, List <double> _variables)
 {
     foreach (Neurone _neurone in _couches[0].Neurones)
     {
         foreach (double _variable in _variables)
         {
             NeuroneHelper.ChangeNeuroneValue(_neurone, _variable);
         }
     }
 }