score_func changed to loss_func

As we are minimizing