Skip to content

axent-pl/axgrad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axgrad

Backpropagation engine for scalar values.

This code has been created just to train myself in how backpropagation works (get the proper intuition).

Example usage

from axgrad.axgrad import Value

for i in range(1, 10):
    x = Value(i)
    y = x**3 + 2*x**2 + x - 7
    y.backward(0.001)
    print(x, x.grad)

Run tests

python -m unittest tests/test_axgrad.py

About

Backpropagation engine for scalar values

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published