Objective function in classification