No project description provided
Project description
autodiffpy
- Group 13
autodiffpy
is a library implementing automatic differentiation to make the calculation of gradients of complex functions fast and precise.
Installation
pip install autodiffpy-free-holmes
Getting Started with Forward mode
from autodiffpy.forward import Forward
x = Forward('x', 3)
f = x ** 2
print(f.value, f.get_gradient('x'))
>>> 9 6
Getting Started with Reverse mode
from autodiffpy.reverse import Reverse
x = Reverse(3)
f = x ** 2
f.gradient_value = 1
print(f.value, x.get_gradient())
>>> 9 6
Learn more
To learn more about the features of forward and reverse mode, including functions of multiple inputs and outputs and elementary functions, head to our documentation at our docs.
Authors
- Teddy Liu
- Tapley Stephenson
- Zihao Xu
- David Zheng
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autodiffpy-free-holmes-0.0.9.tar.gz
.
File metadata
- Download URL: autodiffpy-free-holmes-0.0.9.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d5342d71cb89b412085a867795b21da5c61cde4a39760dbfedad15273abf36 |
|
MD5 | 1db1e4a93903b4b6fdac2b2eaaa00165 |
|
BLAKE2b-256 | 87d42662b8a26e25a702a5b13ed1706cb7be656c9e33df405960e93c0c475722 |
File details
Details for the file autodiffpy_free_holmes-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: autodiffpy_free_holmes-0.0.9-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b6f6b016c500e8853a4a2ac1702c7ae1230390320b1894e2ef8468e91d9fc5 |
|
MD5 | 3e7e4c4c2367623783b93a0f578e7014 |
|
BLAKE2b-256 | 2e78075d0c661f8c5dff0d8663afd1d0950e42aab3fcf891678da7e02b449b13 |