Sigmoidal is a small library to allow you to fit and evaluate sigmoid functions in a way that works like the Numpy Polynomial class.
Project description
Sigmoidal
Sigmoidal is intended to work like the Numpy Polynomial class where it makes sense. Specifically it supports:
- Using the sigmoid function in a very natural way like
y = sig(x)
including when x is a numpy array. (Once you've created a Sigmoid instancesig = Sigmoid(...)
) - Fitting a Sigmoid to data just like Polynomial with
Sigmoid.fit(x, y)
. - Taking the first or second derivative with
deriv()
. - Finding the roots of the sigmoid or it's first or second derivitive with
.roots()
. - The convenience method
.linspace()
which can get you an array of dependent values with only the range of independent values. .copy()
- Operations
==
,!=
,str()
,repr()
Running Tests
python -m unittest discover tests
Setup for Deployment
pip install twine
Building the Package
python setup.py sdist bdist_wheel
Deploying
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
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
Sigmoidal-0.2.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file Sigmoidal-0.2.1.tar.gz
.
File metadata
- Download URL: Sigmoidal-0.2.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17966d4602b0a59c877d5e079a38c83012544ed61c9df2a40fedc792dfe6f310 |
|
MD5 | d119b3abf097fbb7dc108622c119e950 |
|
BLAKE2b-256 | 35d1b9ea96516ca3a81aec72bd7472670a25a8a6d0666ed8e7b83fdd7f63502b |
File details
Details for the file Sigmoidal-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: Sigmoidal-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab3e57d866e8b434c9e40e3186f6ea8f338490727a7edea4473b110e6a791bd5 |
|
MD5 | 9984f3df3ad77dc805306cade968defc |
|
BLAKE2b-256 | de8b4505652464758e08c998d9167b89d2e04dedb086fa9a7db1b5b422f288a3 |