public bool ChangeLayerActivationFunction(int layer, ActivationFunctions.FunctionTypes funcType) { if (layer < 0 || layer >= Layers.Length) { return(false); } return(Layers[layer].ChangeActivationFunction(funcType)); }
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); }
public bool ChangeActivationFunction(ActivationFunctions.FunctionTypes funcType) { return(ActivationFunction.ChangeFunction(funcType)); }