Activation Functions

x:
Leaky slope α:
FunctionOutput
Notes:
  • Heaviside: returns 0 for x<0, 1 for x>0.
  • Sigmoid: 1 / (1 + e−x)
  • tanh: (ex − e−x) / (ex + e−x)
  • ReLU: max(0, x)
  • Leaky ReLU: x if x≥0 else slope*x