improved backward compatibility by removing the class_weight option from the logistic regression function