Sigmoid Colon
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
Metadata
Release files for sigmoidcolon 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sigmoidcolon-0.0.2.tar.gz | 6.4 kB | Without provenance | Details for sigmoidcolon-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sigmoidcolon-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for sigmoidcolon-0.0.2-py3-none-any.whl |
Total release size: 13.1 kB
Release files / sigmoidcolon-0.0.2.tar.gz
| Download URL | sigmoidcolon-0.0.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41f9d96f7d5fc1b9f7076565ddf1bb52a637c4e3453c28ef272fe8db5e3f43fb
|
|
BLAKE2b-256 checksum How to use checksums |
e60f42384be5ec71e40ea650d1f10b5accc759f97453a10eb98743db97685b60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / sigmoidcolon-0.0.2-py3-none-any.whl
| Download URL | sigmoidcolon-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb65c3a44738f59c8b27cdf1295320e8ac016aff8d1ec01c08d06e70e5aefa10
|
|
BLAKE2b-256 checksum How to use checksums |
39a82641a6a92eaa3c991d350b0884179a21436e0baa95cb826599d732761869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for sigmoidcolon 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.