Skip to main content

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 instance sig = 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.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

Sigmoidal-0.3.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file Sigmoidal-0.3.0.tar.gz.

File metadata

  • Download URL: Sigmoidal-0.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for Sigmoidal-0.3.0.tar.gz
Algorithm Hash digest
SHA256 40a7c153aebec84b62d746aa6e8c5c4eb7fa0d4f30e7d7b9db624bd7c3229e38
MD5 9b4a1abb57a8fa212158a0847222be91
BLAKE2b-256 e13f47ed5458f2f8e779efffdda63f8dae6c9889bdb8e0f11cded2a0425a6ae6

See more details on using hashes here.

File details

Details for the file Sigmoidal-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: Sigmoidal-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for Sigmoidal-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55be43b2e616dc07dfc57fc35e269016f96af6b339db8077d29e6a3faf6495ed
MD5 88bd9e29bd2306673c95b61eaeb90512
BLAKE2b-256 637e0d2b0a76a671585483a9a5bee5a5b71b150525a9b90926a608a0160e5d27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page