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

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