This is relevant to the classifier subclasses only, and `class_weight` doesn't need an underscore on the end. The underscore on class attributes is used to indicate output from the `fit` process (and thus, you should still be setting `self.class_weight`).