Esempio n. 1
0
        public void SaveMemoryToDB(Guid networkId, Guid userId, int number, DBInserter dbInserter)
        {
            // Saving layer info:
            dbInserter.InsertLayer(Id, userId, networkId, number);

            // Saving neurons info:
            for (int i = 0; i < _neuronList.Count; i++)
            {
                _neuronList[i].SaveMemoryToDB(Id, userId, i, dbInserter);
            }
        }
Esempio n. 2
0
        public void SaveMemoryToDB(Guid networkId, Guid userId, int number, DBInserter dbInserter)
        {
            // Saving layer info:
            dbInserter.InsertLayer(Id, userId, networkId, number);

            // Saving neurons info:
            int foreachIndex = 0;

            foreach (Neuron neuron in _neuronList)
            {
                neuron.SaveMemoryToDB(Id, userId, foreachIndex, dbInserter);
                foreachIndex++;
            }
        }