Added ability to specify scoring function in classification