1 The weights in a neural network are typically optimized using cost functions such as maximum likelihood or negative log likelihood.
“the weights are optimized by using some sort of cost function usually the maximum likelihood method for binary classification that we have covered in the videos about logistic regression the following weights were optimized by the negative log likelihood function”