No project description provided
Project description
Sigmoid
This library 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.1.0.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file sigmoidal-0.1.0.tar.gz
.
File metadata
- Download URL: sigmoidal-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c61dff7765f75db5fb63f3f61f76bac9a7ac709a77979e49a0dcccecdb900fc |
|
MD5 | 9fe47399a40e4c0882ba3e356acdb994 |
|
BLAKE2b-256 | 9b26eab47894440f1f2c169caa8301c079cb674e5c1464d771cd351d732393b8 |
File details
Details for the file sigmoidal-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: sigmoidal-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 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 | 95e007c513f3792ffcfb594cc69e1a3f2d046fa8897325e117cc005561ab596b |
|
MD5 | 4e93d365a29913f4f38a2ee8bbae6818 |
|
BLAKE2b-256 | 165447dd6112e3509935cc1f3cf3e7d14eec48f7454bd9b2726a7c1b4956b15e |