Mish is a self-regularized smooth activation function introduced in 2019 and popularized by YOLOv4. It outperforms ReLU and Swish on many computer vision benchmarks.
Definition:
mish(x) = x * tanh(softplus(x))
= x * tanh(ln(1 + exp(x)))
Key properties compared to ReLU:
Signature: def mish(x)
x: input array (any shape)xMath
Related problems
Asked at
import numpy as np
def mish(...):
pass
Premium problem
Free accounts include problems #1–20. Upgrade to unlock the editor, hidden test cases, and reference solutions for every problem.
Already premium?