This is a tutorial to implement a feedforward neural network from scratch in Python in under 200 lines. The training technique is using a particle swarm optimization algorithm.
Refer to particle-neural-network-tutorial.ipynb
for the tutorial. If you want to jump straight to the code, code/particle_network_uc.py
is the uncommented code and code/particle_network.py
is the commented code.