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
Close
Hashes for autodiffpy-free-holmes-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d5342d71cb89b412085a867795b21da5c61cde4a39760dbfedad15273abf36 |
|
MD5 | 1db1e4a93903b4b6fdac2b2eaaa00165 |
|
BLAKE2b-256 | 87d42662b8a26e25a702a5b13ed1706cb7be656c9e33df405960e93c0c475722 |
Close
Hashes for autodiffpy_free_holmes-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b6f6b016c500e8853a4a2ac1702c7ae1230390320b1894e2ef8468e91d9fc5 |
|
MD5 | 3e7e4c4c2367623783b93a0f578e7014 |
|
BLAKE2b-256 | 2e78075d0c661f8c5dff0d8663afd1d0950e42aab3fcf891678da7e02b449b13 |