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.

Files for autodiffpy-free-holmes, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size autodiffpy_free_holmes-0.0.9-py3-none-any.whl (9.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size autodiffpy-free-holmes-0.0.9.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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