[Machine Learning] Neural Network: Cost Function Let's first define a few variables that we will need to use: