Skip to content

The goal of this project is to code a single-hidden-layer neural network (NN) in Python with only the NumPy library (and matplotlib and tqdm).

Notifications You must be signed in to change notification settings

made-by-simon/python-neural-network-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Coding a Neural Network in Python

The goal of this project is to code a single-hidden-layer neural network (NN) in Python with only the NumPy library (and matplotlib and tqdm). My motivation is to gain a better grasp of the fundamentals of neural networks, as well as develop intuition about hyperparameters, neuron counts, and activation functions.

The specific problem that this neural network will attempt to solve is approximating the function $f(x) = x^2$. This will be done by an NN with 1 input neuron, 1 output neuron, and some number of hidden neurons.

I wrote all of the code in this Jupyter notebook myself (without generative AI), with the exception of some matplotlib functions used for visualizing results.

© 2025 Simon Wong.

About

The goal of this project is to code a single-hidden-layer neural network (NN) in Python with only the NumPy library (and matplotlib and tqdm).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published