From e5fb78baf9a6014b6dd02cf9f528d069732aafca Mon Sep 17 00:00:00 2001 From: Herman van Hovell Date: Sat, 30 Apr 2016 16:06:20 +0100 Subject: [SPARK-14952][CORE][ML] Remove methods that were deprecated in 1.6.0 #### What changes were proposed in this pull request? This PR removes three methods the were deprecated in 1.6.0: - `PortableDataStream.close()` - `LinearRegression.weights` - `LogisticRegression.weights` The rationale for doing this is that the impact is small and that Spark 2.0 is a major release. #### How was this patch tested? Compilation succeded. Author: Herman van Hovell Closes #12732 from hvanhovell/SPARK-14952. --- python/pyspark/ml/classification.py | 10 ---------- python/pyspark/ml/regression.py | 9 --------- 2 files changed, 19 deletions(-) (limited to 'python') diff --git a/python/pyspark/ml/classification.py b/python/pyspark/ml/classification.py index cc562d2d3d..f616c7fbec 100644 --- a/python/pyspark/ml/classification.py +++ b/python/pyspark/ml/classification.py @@ -213,16 +213,6 @@ class LogisticRegressionModel(JavaModel, JavaMLWritable, JavaMLReadable): .. versionadded:: 1.3.0 """ - @property - @since("1.4.0") - def weights(self): - """ - Model weights. - """ - - warnings.warn("weights is deprecated. Use coefficients instead.") - return self._call_java("weights") - @property @since("1.6.0") def coefficients(self): diff --git a/python/pyspark/ml/regression.py b/python/pyspark/ml/regression.py index 8e76070e9a..d490953f79 100644 --- a/python/pyspark/ml/regression.py +++ b/python/pyspark/ml/regression.py @@ -128,15 +128,6 @@ class LinearRegressionModel(JavaModel, JavaMLWritable, JavaMLReadable): .. versionadded:: 1.4.0 """ - @property - @since("1.4.0") - def weights(self): - """ - Model weights. - """ - warnings.warn("weights is deprecated. Use coefficients instead.") - return self._call_java("weights") - @property @since("1.6.0") def coefficients(self): -- cgit v1.2.3