def fit(self, X, y, sample_weight=None):
        self._label_binarizer = LabelBinarizer(pos_label=1, neg_label=-1)
        Y = self._label_binarizer.fit_transform(y)
        if not self._label_binarizer.y_type_.startswith('multilabel'):
            y = column_or_1d(y, warn=True)
        else:
            # we don't (yet) support multi-label classification in Ridge
            raise ValueError(
                "%s doesn't support multi-label classification" % (
                    self.__class__.__name__))

        if self.class_weight:
            if sample_weight is None:
                sample_weight = 1.
            # modify the sample weights with the corresponding class weight
            sample_weight = (sample_weight *
                             compute_sample_weight(self.class_weight, y))

        super(RidgeClassifier, self).fit(X, Y, sample_weight=sample_weight)
        return self
Retrieve a list of flags which are passed to sudo when running as a different user and "-u"
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/linear_model/ridge.py/RidgeClassifier.fit--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/models/system/action.py/ShellCommandAction._get_user_sudo_arguments