예제 #1
0
 public bool ChangeLayerActivationFunction(int layer, ActivationFunctions.FunctionTypes funcType)
 {
     if (layer < 0 || layer >= Layers.Length)
     {
         return(false);
     }
     return(Layers[layer].ChangeActivationFunction(funcType));
 }
예제 #2
0
        public bool ChangeLayerActivationFunction(ActivationFunctions.FunctionTypes funcType)
        {
            bool allValid = true;

            for (int i = 0; i < Layers.Length; i++)
            {
                if (Layers[i].ChangeActivationFunction(funcType) == false)
                {
                    allValid = false;
                }
            }
            return(allValid);
        }
예제 #3
0
 public bool ChangeActivationFunction(ActivationFunctions.FunctionTypes funcType)
 {
     return(ActivationFunction.ChangeFunction(funcType));
 }