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 --skip-existing --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.4.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file Sigmoidal-0.4.0.tar.gz
.
File metadata
- Download URL: Sigmoidal-0.4.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361e28d727e79e569cbea11eb6259d2ba9ead23e941b5547b06853d9cd268993 |
|
MD5 | 59f4caf137fdcb1d9ea3bda9164a0677 |
|
BLAKE2b-256 | 55f82ac905f2642b3a3530e1b7fcdfd29d3353329a2c57875aafacdca1208853 |
File details
Details for the file Sigmoidal-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: Sigmoidal-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | c2374ba4adaa65eac56dfec8e5367def83f5d89a176c883b99d8ccde6d648b0a |
|
MD5 | ab687820e07f70931eed8ca374981cf5 |
|
BLAKE2b-256 | 9fdbde0b04bafbc14d3c2b192b1733ac14f7f13d8ebf0a5bcfcd616e970c7d67 |