diff options
Diffstat (limited to 'python/pyspark')
-rw-r--r-- | python/pyspark/ml/classification.py | 10 | ||||
-rw-r--r-- | python/pyspark/ml/regression.py | 9 |
2 files changed, 0 insertions, 19 deletions
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 @@ -214,16 +214,6 @@ class LogisticRegressionModel(JavaModel, JavaMLWritable, JavaMLReadable): """ @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 @@ -129,15 +129,6 @@ class LinearRegressionModel(JavaModel, JavaMLWritable, JavaMLReadable): """ @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): """ |