Github user kevinyu98 commented on a diff in the pull request: https://github.com/apache/spark/pull/20842#discussion_r176899545 --- Diff: python/pyspark/ml/regression.py --- @@ -347,6 +347,20 @@ def r2(self): """ return self._call_java("r2") + @property + @since("2.4.0") + def r2adj(self): + """ + Returns Adjusted R^2^, the adjusted coefficient of determination. + + .. seealso:: `Wikipedia coefficient of determination \ + <https://en.wikipedia.org/wiki/Coefficient_of_determination>` --- End diff -- ok, done.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org