Skip to main content

No project description provided

Project description

autodiffpy - Group 13

Build Status Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autodiffpy-free-holmes-0.0.9.tar.gz (7.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page