def fit(self, X, y=None):
    'Fit detector. y is ignored in unsupervised methods.\n\n        Parameters\n        ----------\n        X : numpy array of shape (n_samples, n_features)\n            The input samples.\n\n        y : Ignored\n            Not used, present for API consistency by convention.\n\n        Returns\n        -------\n        self : object\n            Fitted estimator.\n        '
    X = check_array(X)
    self._set_n_classes(y)
    self.decision_scores_ = self.decision_function(X)
    self._process_decision_scores()
    return self
Fit detector. y is ignored in unsupervised methods.

Parameters
----------
X : numpy array of shape (n_samples, n_features)
    The input samples.

y : Ignored
    Not used, present for API consistency by convention.

Returns
-------
self : object
    Fitted estimator.
def fit(self, X, y=None):
    'Fit detector. y is ignored in unsupervised methods.\n\n        Parameters\n        ----------\n        X : numpy array of shape (n_samples, n_features)\n            The input samples.\n\n        y : Ignored\n            Not used, present for API consistency by convention.\n\n        Returns\n        -------\n        self : object\n            Fitted estimator.\n        '
    X = check_array(X)
    self._set_n_classes(y)
    self.decision_scores_ = self.decision_function(X)
    self._process_decision_scores()
    return self