public void NN_activation_function_hyperbolictangent() { HyperbolicTangent aFunc = new HyperbolicTangent(); double value = aFunc.GetValue(3.0); Assert.IsTrue(SupportFunctions.DoubleCompare(value, 0.9950)); }
private Activation CheckType(string type) { Activation tempAct; switch (type) { case "Sigmoid": tempAct = new Sigmoid(); break; case "HypTan": tempAct = new HyperbolicTangent(); break; default: tempAct = new Default(); break; } return(tempAct); }