How to Train a Neural Network from Scratch A Beginner’s Guide