//Forward Propagate this Neuron public string ForwardPropag(Neuron[,] nn) { this.GetInputs(nn); this.output = MyMath.colMatMulti(this.inputs, this.weights); if (this.actFunc == actFuncType.identity) { this.postActOutput = MyMath.identityFunc(this.output, this.beta); } else if (this.actFunc == actFuncType.logistic) { this.postActOutput = MyMath.logisticFunc(this.output, this.beta); } else if (this.actFunc == actFuncType.ReLU) { this.postActOutput = MyMath.reluFunc(this.output, this.beta); } else if (this.actFunc == actFuncType.tanh) { this.postActOutput = MyMath.tanhFunc(this.output, this.beta); } return(null); }