this function is meant to calculate accuracy of logistic regression, but what is the point of using reduce_mean function in this function?
the code is: