Log Loss function adjusted