Example #1
0
 public void SetLayerType(int nLayerIndex, LayerBase.ActType type)
 {
     Debug.Assert(nLayerIndex >= 0, "NeuralNetworkDLL::NeuralNetwork::SetLayerType");
     Debug.Assert(nLayerIndex < m_aLayers.Length, "NeuralNetworkDLL::NeuralNetwork::SetLayerType");
     m_aLayers[nLayerIndex].SetActType(type);
 }
Example #2
0
 public void SetLayer(int nLayerIndex, int nSize, LayerBase.ActType type)
 {
     Debug.Assert(nLayerIndex >= 0, "NeuralNetworkDLL::NeuralNetwork::SetLayer");
     Debug.Assert(nLayerIndex < m_aLayers.Length, "NeuralNetworkDLL::NeuralNetwork::SetLayer");
     m_aLayers[nLayerIndex] = new LayerBase(nSize, type, m_dBias);
 }