Skip to main content

Python package for Automatic Differentiation

Project description

VayDiff Build StatusCoverage Status

An Automatic Differentiation Library for Python 3. This project was done for CS207 at Harvard University, taught by Professor David Sondak. Check out our Documentation for more details!

How to Install

Installing via PyPI (for end-users)

Download our project on PyPI using the following command:

pip install VayDiff

Manual Installation (for developers)

Clone or download our GitHub repository and navigate into this directory in your terminal.

Optional: create a virtual environment using virtualenv. This can be downloaded using pip3 or easy_install as follows:

pip3 install virtualenv

or

sudo easy_install virtualenv

Then, create a virtual environment (using Python3), activate this virtual environment, and install the dependencies as follows:

virtualenv -p python3 my_env
source my_env/bin/activate
pip3 install -r requirements.txt

In order to deactivate the virtual environment, use the following command

deactivate

Example

from VayDiff.VayDiff import Variable
from VayDiff.VayDiff import Diff

def user_function(a):
  return a**2

x = Variable(3, name='x')
t = Diff().auto_diff(user_function, [x])
print(t.val, t.der['x'])
9 6.0

Fractals!

newton_fractal

Look at our Feature section for examples and more fractals.

Made By:

  1. Abhimanyu Vasishth
  2. Zheyu Wu
  3. Yiming Xu

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

VayDiff-0.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

VayDiff-0.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file VayDiff-0.0.2.tar.gz.

File metadata

  • Download URL: VayDiff-0.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for VayDiff-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc5762305b2de07f6cdf107ed27011a3e1b2415459394d06dc373190e796654f
MD5 af82988b883811e41db8292d43e75c7a
BLAKE2b-256 800e8e92160e1d123e266b63c7913a305ce5597ba344c6840fb0a8100df40bdd

See more details on using hashes here.

File details

Details for the file VayDiff-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: VayDiff-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for VayDiff-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a034b4b18e3baf78174b45a7d867264f97880dfa149f91d77604e0def3a9a98
MD5 c803f000093d62aeb898a45924a86368
BLAKE2b-256 10076cf89cfdaafda4288cc9e6eb78309e195303667cff0fed8e7a1913ab549f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page