def METHOD_NAME(self, X):
    """Predict raw anomaly score of X using the fitted detector.
    The anomaly score of an input sample is computed based on different
    detector algorithms. For consistency, outliers are assigned with
    larger anomaly scores.
    Parameters
    ----------
    X : numpy array of shape (n_samples, n_features)
        The test input samples.
    Returns
    -------
    anomaly_scores : numpy array of shape (n_samples,)
        The anomaly score of the input samples.
    """
    check_is_fitted(self, ["decision_scores_", "threshold_", "labels_"])
    X = check_array(X)
    pair_dist = self.dist.pairwise(X, self.subset)
    anomaly_scores = np.min(pair_dist, axis=1)
    return anomaly_scores