(self, X, sample=0, **plot_params)
return Xt
Take a one-sample slice from the input collection and transform it.
        Before returning the transformed object, plot the transformed sample.

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

        sample : int
            Sample to be plotted.

        **plot_params
            Optional plotting parameters.

        Returns
        -------
        Xt : ndarray of shape (1, ...)
            Transformed one-sample slice from the input.
Take a one-sample slice from the input collection and transform it.
        Before returning the transformed object, plot the transformed sample.
Take a one - sample slice from the input collection and transform it . Before returning the transformed object plot the transformed sample .
def transform_plot(self, X, sample=0, **plot_params):
        """Take a one-sample slice from the input collection and transform it.
        Before returning the transformed object, plot the transformed sample.

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

        sample : int
            Sample to be plotted.

        **plot_params
            Optional plotting parameters.

        Returns
        -------
        Xt : ndarray of shape (1, ...)
            Transformed one-sample slice from the input.

        """
        Xt = self.transform(X[sample:sample+1])
        self.plot({sample: Xt[0]}, sample=sample, **plot_params).show()
        return Xt
def transform_plot ( self , X , sample = 0 , * * plot_params ) : Xt = self . transform ( X [ sample : sample + 1 ] ) self . plot ( { sample : Xt [ 0 ] } , sample = sample , * * plot_params ) . show ( ) return Xt