(self, X, y)
return self.transform(X), self.resample(y, X)
Fit to data, then transform it.

        Fits transformer to `X` and `y` with optional parameters `fit_params`
        and returns a transformed version of `X`.

        Parameters
        ----------
        X : ndarray of shape (n_samples, ...)
            Input data.

        y : ndarray of shape (n_samples,)
            Target data.

        Returns
        -------
        Xt : ndarray of shape (n_samples, ...)
            Transformed input.

        yr : ndarray of shape (n_samples, ...)
            Resampled target.
Fit to data, then transform it.
Fit to data then transform it .
def transform_resample(self, X, y):
        """Fit to data, then transform it.

        Fits transformer to `X` and `y` with optional parameters `fit_params`
        and returns a transformed version of `X`.

        Parameters
        ----------
        X : ndarray of shape (n_samples, ...)
            Input data.

        y : ndarray of shape (n_samples,)
            Target data.

        Returns
        -------
        Xt : ndarray of shape (n_samples, ...)
            Transformed input.

        yr : ndarray of shape (n_samples, ...)
            Resampled target.

        """
        return self.transform(X), self.resample(y, X)
def transform_resample ( self , X , y ) : return self . transform ( X ) , self . resample ( y , X )