{"id":15394216,"url":"https://github.com/xyproto/af","last_synced_at":"2025-08-13T21:35:16.504Z","repository":{"id":136546444,"uuid":"93934366","full_name":"xyproto/af","owner":"xyproto","description":":zap: Activation functions for neural networks","archived":false,"fork":false,"pushed_at":"2019-10-18T21:44:15.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T01:06:04.408Z","etag":null,"topics":["activation-functions","neural-network","nn"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-10T11:16:03.000Z","updated_at":"2024-08-25T02:28:48.000Z","dependencies_parsed_at":"2023-07-13T22:55:10.487Z","dependency_job_id":null,"html_url":"https://github.com/xyproto/af","commit_stats":null,"previous_names":["xyproto/activation"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Faf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Faf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Faf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Faf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/af/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252867240,"owners_count":21816635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activation-functions","neural-network","nn"],"created_at":"2024-10-01T15:22:26.891Z","updated_at":"2025-05-07T11:25:32.842Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# af [![Build Status](https://travis-ci.org/xyproto/af.svg?branch=master)](https://travis-ci.org/xyproto/af) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/af)](https://goreportcard.com/report/github.com/xyproto/af) [![GoDoc](https://godoc.org/github.com/xyproto/af?status.svg)](https://godoc.org/github.com/xyproto/af)\n\nActivation functions for neural networks.\n\nThese activation functions are included:\n\n* Swish (`x / (1 + exp(-x))`)\n* Sigmoid (`1 / (1 + exp(-x))`)\n* SoftPlus (`log(1 + exp(x))`)\n* Gaussian01 (`exp(-(x * x) / 2.0)`)\n* Sin (`math.Sin(math.Pi * x)`)\n* Cos (`math.Cos(math.Pi * x)`)\n* Linear (`x`)\n* Inv (`-x`)\n* ReLU (`x \u003e= 0 ? x : 0`)\n* Squared (`x * x`)\n\nThese `math` functions are included just for convenience:\n\n* Abs (`math.Abs`)\n* Tanh (`math.Tanh`)\n\nOne functions that takes two arguments is also included:\n\n* PReLU (`x \u003e= 0 ? x : x * a`)\n\n## Requirements\n\n* Go 1.11 or later.\n\n## General information\n\n* License: MIT\n* Version: 0.3.2\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Faf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Faf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Faf/lists"}