diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2016-04-29 10:40:00 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-04-29 10:40:00 -0700 |
commit | f08dcdb8d33d2a40573547ae8543e409b6ab9e59 (patch) | |
tree | 3e5b814754349eb99f02a22a6d340cde96122433 /mllib/src/main/scala | |
parent | 87ac84d43729c54be100bb9ad7dc6e8fa14b8805 (diff) | |
download | spark-f08dcdb8d33d2a40573547ae8543e409b6ab9e59.tar.gz spark-f08dcdb8d33d2a40573547ae8543e409b6ab9e59.tar.bz2 spark-f08dcdb8d33d2a40573547ae8543e409b6ab9e59.zip |
[SPARK-14984][ML] Deprecated model field in LinearRegressionSummary
## What changes were proposed in this pull request?
Deprecated model field in LinearRegressionSummary
Removed unnecessary Since annotations
## How was this patch tested?
Existing tests
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #12763 from jkbradley/lr-summary-api.
Diffstat (limited to 'mllib/src/main/scala')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala | 8 | ||||
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala index ec7fc977b2..8cd7ee4d9a 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala @@ -811,10 +811,10 @@ sealed trait LogisticRegressionSummary extends Serializable { @Experimental @Since("1.5.0") class BinaryLogisticRegressionTrainingSummary private[classification] ( - @Since("1.5.0") predictions: DataFrame, - @Since("1.5.0") probabilityCol: String, - @Since("1.5.0") labelCol: String, - @Since("1.6.0") featuresCol: String, + predictions: DataFrame, + probabilityCol: String, + labelCol: String, + featuresCol: String, @Since("1.5.0") val objectiveHistory: Array[Double]) extends BinaryLogisticRegressionSummary(predictions, probabilityCol, labelCol, featuresCol) with LogisticRegressionTrainingSummary { diff --git a/mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala b/mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala index 71e02730c7..0be8f3aebb 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala @@ -562,6 +562,7 @@ class LinearRegressionSummary private[regression] ( val predictionCol: String, val labelCol: String, val featuresCol: String, + @deprecated("The model field is deprecated and will be removed in 2.1.0.", "2.0.0") val model: LinearRegressionModel, private val diagInvAtWA: Array[Double]) extends Serializable { |