(self, X, y=None)
.. deprecated:: 0.0.0
           The `transform` method is deprecated on a trainable
           operator, because the learned coefficients could be
           accidentally overwritten by retraining. Call `transform`
           on the trained operator returned by `fit` instead.
.. deprecated:: 0.0.0
           The `transform` method is deprecated on a trainable
           operator, because the learned coefficients could be
           accidentally overwritten by retraining. Call `transform`
           on the trained operator returned by `fit` instead.
.. deprecated :: 0 . 0 . 0 The transform method is deprecated on a trainable operator because the learned coefficients could be accidentally overwritten by retraining . Call transform on the trained operator returned by fit instead .
def transform(self, X, y=None) -> Any:
        """
        .. deprecated:: 0.0.0
           The `transform` method is deprecated on a trainable
           operator, because the learned coefficients could be
           accidentally overwritten by retraining. Call `transform`
           on the trained operator returned by `fit` instead.

        """
        warnings.warn(_mutation_warning("transform"), DeprecationWarning)
        try:
            return self._trained.transform(X, y=None)
        except AttributeError:
            raise ValueError("Must call `fit` before `transform`.")
def transform ( self , X , y = None ) -> Any : warnings . warn ( _mutation_warning ( "transform" ) , DeprecationWarning ) try : return self . _trained . transform ( X , y = None ) except AttributeError : raise ValueError ( "Must call `fit` before `transform`." )