tanh function
Hyperbolic tangent activation function
Similar to Sigmoid function except values are mapped to a range between -1 and 1. Also often used in the output layer of a classification model
def tanh(val):
return np.tanh(val)
Hyperbolic tangent activation function
Similar to Sigmoid function except values are mapped to a range between -1 and 1. Also often used in the output layer of a classification model
def tanh(val):
return np.tanh(val)