@property
@since('2.0.0')
def r2(self):
    '\n        Returns R^2, the coefficient of determination.\n\n        .. seealso:: `Wikipedia coefficient of determination\n            <http://en.wikipedia.org/wiki/Coefficient_of_determination>`_\n\n        .. note:: This ignores instance weights (setting all to 1.0) from\n            `LinearRegression.weightCol`. This will change in later Spark\n            versions.\n        '
    return self._call_java('r2')
Returns R^2, the coefficient of determination.

.. seealso:: `Wikipedia coefficient of determination
    <http://en.wikipedia.org/wiki/Coefficient_of_determination>`_

.. note:: This ignores instance weights (setting all to 1.0) from
    `LinearRegression.weightCol`. This will change in later Spark
    versions.
@property
@since('2.0.0')
def r2(self):
    '\n        Returns R^2, the coefficient of determination.\n\n        .. seealso:: `Wikipedia coefficient of determination\n            <http://en.wikipedia.org/wiki/Coefficient_of_determination>`_\n\n        .. note:: This ignores instance weights (setting all to 1.0) from\n            `LinearRegression.weightCol`. This will change in later Spark\n            versions.\n        '
    return self._call_java('r2')