{"url":"/method/hardelish","slug":"hardelish","name":"HardELiSH","full_name":"HardELiSH","full_name_withheld":false,"description_markdown":"**HardELiSH** is an activation function for neural networks.  The HardELiSH is a multiplication of the [HardSigmoid](https://paperswithcode.com/method/hard-sigmoid) and [ELU](https://paperswithcode.com/method/elu) in the negative part and a multiplication of the Linear and the HardSigmoid in the positive\r\npart:\r\n\r\n$$f\\left(x\\right) = x\\max\\left(0, \\min\\left(1, \\left(\\frac{x+1}{2}\\right)\\right) \\right) \\text{ if } x \\geq 1$$\r\n$$f\\left(x\\right) = \\left(e^{x}-1\\right)\\max\\left(0, \\min\\left(1, \\left(\\frac{x+1}{2}\\right)\\right)\\right) \\text{ if } x < 0 $$\r\n\r\nSource: [Activation Functions](https://arxiv.org/pdf/1811.03378.pdf)","description_state":"present","introduced_year":null,"introduced_by":{"title":"The Quest for the Golden Activation Function","paper":"/paper/the-quest-for-the-golden-activation-function","first_author":"Mina Basirat","n_authors":2,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/the-quest-for-the-golden-activation-function"},"source":{"url":"http://arxiv.org/abs/1808.00783v1","title":"The Quest for the Golden Activation Function","url_on_a_paper_host":true},"code_snippet_url":"https://github.com/digantamisra98/Echo/blob/ffac8cab7938d8a2ea1eee9a947602d1f577c9f3/echoAI/Activation/Torch/hard_elish.py#L19","code_snippet_url_on_a_code_host":true,"categories":[{"area":"General","area_id":"general","collection":"Activation Functions","url":"/methods/category/activation-functions","pwc_aliases":[]}],"n_papers_tagged":1,"archive_num_papers":1,"papers_newest_first":[{"paper":"/paper/the-quest-for-the-golden-activation-function","title":"The Quest for the Golden Activation Function","date":"2018-08-02","arxiv_id":"1808.00783","n_code_links":0,"syntology":null}],"papers_shown":1,"tasks":[{"task":"/task/image-classification","name":"Image Classification","papers":1},{"task":"/task/image-classification","name":"image-classification","papers":1}],"tasks_shown":2,"n_tasks":2,"usage_by_year":[{"year":"2018","papers":1}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/hardelish"},"syntology_read_at":"2026-09-24T18:15:14+00:00"}