Small neural network library in pure Python and numpy.
Go to file
2020-11-14 20:58:11 +00:00
.gitignore Add include/ to .gitignore 2020-11-14 20:45:38 +00:00
nn.py Add exp function 2020-11-14 20:44:55 +00:00
README.md Update example in README 2020-11-14 20:58:11 +00:00

PyGrad

Neural network library written in Python completely from scratch, using only numpy.

Usage

import nn

a, b = Tensor(2), Tensor(3)
c = a.mul(b)
d = c.exp()
d.backward()

print(a.grad, b.grad, c.grad)
# should output (1210.2863804782053, 806.8575869854702, 403.4287934927351)

References

Copying

This is free and unencumbered software released into the public domain.