added class_weight computation for liblinear again from master
disabled class_weight computation when no class is passed