Skip to content

Neural networks from scratch with automatic grad and finite difference

Notifications You must be signed in to change notification settings

anilzeybek/nn-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Networks from scratch!

Two different implementations:

  • Finite difference implementation (simplest to understand)
  • Backprop implementation (using an autograd, suprisingly simple when you know about computation graphs)

And also the PyTorch implementation for comparison.

We make the network to learn xor gate. Like learning the 1 ^ 1 = 0. For that we create the truth table for the xor, and feed the bits into the network.

You can read my blog post if you like to learn how to implement this step-by-step: https://comsci.blog/2023/08/24/nn-from-scratch.html

About

Neural networks from scratch with automatic grad and finite difference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages