Skip to main content

The biologically inspired sigmoid activation function.

Project description

Sigmoid Colon

GitHub Website GitHub release

The biologically inspired activation function. Read our (toilet) paper.

Installation

Install with pip:

pip install sigmoidcolon

Usage

Class version

from torch import nn
from sigmoidcolon import SigmoidColon

model = nn.Sequential(
    nn.Linear(784, 64),
    SigmoidColon()
    nn.Linear(64, 10)
)

Functional version

from torch import nn
from sigmoidcolon.functional import sigmoidcolon

x = torch.randn(100)
y = sigmoidcolon(x)

Development

Not satisfied with the function? Redo it with:

# install dev requirements
pip install Pillow numpy matplotlib

# run code generation tool
python scripts/codegen.py docs/sigmoidcolon.png

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

sigmoidcolon-0.0.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

sigmoidcolon-0.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file sigmoidcolon-0.0.2.tar.gz.

File metadata

  • Download URL: sigmoidcolon-0.0.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for sigmoidcolon-0.0.2.tar.gz
Algorithm Hash digest
SHA256 41f9d96f7d5fc1b9f7076565ddf1bb52a637c4e3453c28ef272fe8db5e3f43fb
MD5 e6af1b014655a2d502f1aac7703b78d4
BLAKE2b-256 e60f42384be5ec71e40ea650d1f10b5accc759f97453a10eb98743db97685b60

See more details on using hashes here.

File details

Details for the file sigmoidcolon-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sigmoidcolon-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb65c3a44738f59c8b27cdf1295320e8ac016aff8d1ec01c08d06e70e5aefa10
MD5 ba1fee4aaf167ab146a9f4392ca8e9be
BLAKE2b-256 39a82641a6a92eaa3c991d350b0884179a21436e0baa95cb826599d732761869

See more details on using hashes here.

Supported by

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