# Two ways of optimize the same function?

I don't get why it first says to optimize logistic regression taking the max Probability and after using the Log loss function ?

Sorry you can explain me the point where him will use the Argmax and where Will use the Loss ?

you would not need only 1 of this 2 ?

# symbolic description of how to compute prediction as class whose # probability is maximal self.y_pred = T.argmax(self.p_y_given_x, axis=1)
• Worth reinforcing that the argmax function is not used to optimise anything - it is not really possible, because it is not differentiable. Instead it is being used to output a predictive value that we are interested in. There are ways to use it if for instance we want to meta-search parameters - then we might use accuracy on a cross-validation data set as a metric for the search. – Neil Slater Jul 1 '16 at 6:58