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())
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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84c1384ef92c3e81c18be46b507ff5b2e831192e7f14eec775b33cdb7483dc4a |
|
MD5 | a5f5ec13663e0ae4a723e10f3b2c3ba7 |
|
BLAKE2b-256 | dff7327f53fadd4f063700fa9a39f46a129fc684d5837afe046ea24d8490a808 |
Close
Hashes for autodiffpy_free_holmes-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71003bffac01e205b79edf7a6740e3cae27430d062ec6c08dd30107f1b61a8ec |
|
MD5 | 3f20a31f161edf962dfe65d5db6b7e1d |
|
BLAKE2b-256 | c612dbc614ce42bb60b5645d1bd0643e9160ff5cba8fc4af52ba57bda6f9e25c |