def predict(self, X):
        """Predict using the fitted underlying estimator and the reduced
        dataset.

        Parameters
        ----------
        X : pandas.DataFrame (n_samples, n_features)
            Training vector, where n_samples is the number of samples.

        Returns
        -------
        pred: array of shape (n_samples)
            The predicted target values.
        """
        X_t = self._transform(
            X=X, metric=None, metric_special=self._metric_special,
            metric_missing=self._metric_missing)

        return self.estimator_.predict(X_t)
Predict using the fitted underlying estimator and the reduced
        dataset.

        Parameters
        ----------
        X : pandas.DataFrame (n_samples, n_features)
            Training vector, where n_samples is the number of samples.

        Returns
        -------
        pred: array of shape (n_samples)
            The predicted target values.
        
optbinning/scorecard/scorecard.py