Skip to main content

A hand-curated collections of activations functions for deep learning research.

Project description

Non-Linear

A hand-curated collections of activations functions for deep learning research.

Channel-Based Activation Functions

Activation Function Formula
FPAF $f(x) = a \cdot \mu(x)$ if $x \geq 0$, else $b \cdot \nu(x)$
DPReLU $f(x) = ax$ if $x \geq 0$, else $bx$
DualLine $f(x) = ax + m$ if $x \geq 0$, else $bx + m$
FReLU $f(x) = \text{ReLU}(x) + b$
LeLeLU $f(x) = ax$ if $x \geq 0$, else $0.01ax$
PREU $f(x) = ax$ if $x \geq 0$, else $ax \exp(bx)$
ShiLU $f(x) = a \cdot \text{ReLU}(x) + b$
StarReLU $f(x) = a \cdot \text{ReLU}(x)^2 + b$
EPReLU $f(x) = kx$ if $x \geq 0$, else $\frac{x}{a}$ (where $k$ updates dynamically)
PairedReLU $f(x) = \left[\text{ReLU}(ax - b), \text{ReLU}(cx - d)\right]$ (concatenated along channel dimension)
RMAF $f(x) = \frac{abx}{(0.25(1 + \exp(-x)) + 0.75)^c}$
PTELU $f(x) = x$ if $x \geq 0$, else $\vert a \vert \tanh(\vert b \vert x)$
TaLU $f(x) = x$ if $x \geq \vert b \vert$; $\tanh(x)$ if $x > \vert a \vert$; else $\tanh(\vert a \vert)$
TanhLU $f(x) = a \tanh(cx) + bx$

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonlinear-0.0.11.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonlinear-0.0.11-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file nonlinear-0.0.11.tar.gz.

File metadata

  • Download URL: nonlinear-0.0.11.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for nonlinear-0.0.11.tar.gz
Algorithm Hash digest
SHA256 b0ce27da10cf1afe61b40cf2f3266dc8535fe9d848d22e6535da04347830d440
MD5 b01a1ef42d9734fe901891b939c2f4f6
BLAKE2b-256 5d1caddf6e4bc100be066d044768ee6019431cd1bb519c9a623e0e33a0b858b6

See more details on using hashes here.

File details

Details for the file nonlinear-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: nonlinear-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for nonlinear-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4d45d892dfa94254a82e52d61d5db45aeb0da30ef555a2327f087e33fc15c4
MD5 a2891487b85f04acb4fe772488b18b19
BLAKE2b-256 c924b19b196ca22fed6b2a2bebf60920ced22cc80ee5dc1de23ac1b9ef7b5908

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page