Python package for Automatic Differentiation
Project description
VayDiff 

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!
Look at our Feature section for examples and more fractals.
Made By:
- Abhimanyu Vasishth
- Zheyu Wu
- Yiming Xu
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file VayDiff-0.0.3.tar.gz.
File metadata
- Download URL: VayDiff-0.0.3.tar.gz
- Upload date:
- Size: 9.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9de9d212a87d3006eaee9246b01cec44f3769a540e3fd283d98bad76873a0a1
|
|
| MD5 |
b9f3b685eb4f28ac89c0cc491694814d
|
|
| BLAKE2b-256 |
b581d5006af83cfb8bb4050a2e52938addfd60a000554c1b2eb5d789e4004940
|
File details
Details for the file VayDiff-0.0.3-py3-none-any.whl.
File metadata
- Download URL: VayDiff-0.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d654ddb050e1949025d1bbfe1420a171747f81ee27fbe08120fabd6cd07983e8
|
|
| MD5 |
6dc3e242ce546384acf1027f12b51ca7
|
|
| BLAKE2b-256 |
b85c24c8a474897f9c87687fed30c20662aa9ea75e88eb841b06888137523b36
|