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.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file Sigmoidal-0.2.0.tar.gz
.
File metadata
- Download URL: Sigmoidal-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb5b02b6cc85e4ab4bba404e6e9e71c34325fa8ef02f8f06e155f653f75e213 |
|
MD5 | d8493cbccfb302dd184be6fa0138f710 |
|
BLAKE2b-256 | 36676c6647a6e093911aae18e3488105f24a6d4321afab641a163696c01bc807 |
File details
Details for the file Sigmoidal-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: Sigmoidal-0.2.0-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 | a4e0d61d6fe14c66e6775cab412bfc05d0432471a95c2c04aa16c7fbcb4421de |
|
MD5 | 576a39ca86c198568ae89c064ae54f1c |
|
BLAKE2b-256 | b7cc46737516445b9cbf390edeaeeb0a42341513bb07b90cbd779f008ac8bb3e |