@neural_computation<EOL>def activate(var, method):
from activations import get_activation<EOL>return get_activation(method)(var)<EOL>
An activation function.
:param var: input var
:param method: type of activation, such as `relu`,`tanh`,`sigmoid`