DOC Improved the docstring of TransformedTargetRegressor
@@ -17,10 +17,10 @@ __all__ = ['TransformedTargetRegressor']
class TransformedTargetRegressor(RegressorMixin, BaseEstimator):
"""Meta-estimator to regress on a transformed target.
- Useful for applying a non-linear transformation in regression
- problems. This transformation can be given as a Transformer such as the
- QuantileTransformer or as a function and its inverse such as ``log`` and
- ``exp``.
+ Useful for applying a non-linear transformation to the target ``y`` in
+ regression problems. This transformation can be given as a Transformer
+ such as the QuantileTransformer or as a function and its inverse such as
+ ``log`` and ``exp``.
The computation during ``fit`` is::
@@ -38,7 +38,7 @@ class TransformedTargetRegressor(RegressorMixin, BaseEstimator):
transformer.inverse_transform(regressor.predict(X))
- Read more in the :ref:`User Guide <preprocessing_targets>`.
+ Read more in the :ref:`User Guide <transformed_target_regressor>`.
Parameters
----------
