Exemple #1
0
        public void DBMemoryAbort(DBDeleter dbDeleter)
        {
            // Aborting saving of layers:
            for (int i = 0; i < _layerList.Count; i++)
            {
                _layerList[i].DBMemoryAbort(Id, dbDeleter);
            }

            // Aborting saving of network:
            dbDeleter.DeleteFromTableNetworks(Id);
        }
Exemple #2
0
        public void DBMemoryAbort(Guid layerId, DBDeleter dbDeleter)
        {
            // Aborting saving of neurons:
            for (int i = 0; i < _weights.Length; i++)
            {
                dbDeleter.DeleteFromTableWeights(Id);
            }

            // Aborting saving of layer:
            dbDeleter.DeleteFromTableNeurons(layerId);
        }
Exemple #3
0
        public void DBMemoryAbort(DBDeleter dbDeleter)
        {
            // Aborting saving of layers:
            foreach (Layer layer in _layerList)
            {
                layer.DBMemoryAbort(Id, dbDeleter);
            }

            // Aborting saving of network:
            dbDeleter.DeleteFromTableNetworks(Id);
        }
Exemple #4
0
        public void DBMemoryAbort(Guid networkId, DBDeleter dbDeleter)
        {
            // Aborting saving of neurons:
            foreach (Neuron neuron in _neuronList)
            {
                neuron.DBMemoryAbort(Id, dbDeleter);
            }

            // Aborting saving of layer:
            dbDeleter.DeleteFromTableLayers(networkId);
        }
Exemple #5
0
        public void DBMemoryAbort(Guid networkId, DBDeleter dbDeleter)
        {
            // Aborting saving of neurons:
            for (int i = 0; i < _neuronList.Count; i++)
            {
                _neuronList[i].DBMemoryAbort(Id, dbDeleter);
            }

            // Aborting saving of layer:
            dbDeleter.DeleteFromTableLayers(networkId);
        }
Exemple #6
0
        /// <summary>
        /// Deleting network's memory from database
        /// </summary>
        /// <param name="dbConfig"></param>
        public void DBMemoryAbort(DatabaseConfig dbConfig)
        {
            try
            {
                DBDeleter dbDeleter = new DBDeleter(dbConfig);

                // Aborting saving network's info:
                _net.DBMemoryAbort(dbDeleter);
                Console.WriteLine("Another network's memory backup aborted successfully!");
            }
            catch (Exception ex)
            {
                Logger.LogError(ErrorType.DBDeleteError, "DB Memory backup aborting error!\n" + ex);
                Console.WriteLine($" {DateTime.Now } DB Memory backup aborting error!\n {ex}");
            }
        }