diff options
author | DB Tsai <dbt@netflix.com> | 2015-11-02 19:07:31 -0800 |
---|---|---|
committer | DB Tsai <dbt@netflix.com> | 2015-11-02 19:07:31 -0800 |
commit | 21ad846238a9a79564e2e99a1def89fd31a0870d (patch) | |
tree | 64ac8ec30f13f3b8f4a2eea4a4c67d38cfc89353 /mllib/src/main | |
parent | 476f4348e2ea57ea05f4b470abfe76d97eeb20ce (diff) | |
download | spark-21ad846238a9a79564e2e99a1def89fd31a0870d.tar.gz spark-21ad846238a9a79564e2e99a1def89fd31a0870d.tar.bz2 spark-21ad846238a9a79564e2e99a1def89fd31a0870d.zip |
[MINOR][ML] removed the old `getModelWeights` function
Removed the old `getModelWeights` function which was private and renamed into `getModelCoefficients`
Author: DB Tsai <dbt@netflix.com>
Closes #9426 from dbtsai/feature-minor.
Diffstat (limited to 'mllib/src/main')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/r/SparkRWrappers.scala | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/r/SparkRWrappers.scala b/mllib/src/main/scala/org/apache/spark/ml/r/SparkRWrappers.scala index 9162ec0e4e..24f76de806 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/r/SparkRWrappers.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/r/SparkRWrappers.scala @@ -51,16 +51,6 @@ private[r] object SparkRWrappers { pipeline.fit(df) } - @deprecated("Use getModelCoefficients instead.", "1.6.0") - def getModelWeights(model: PipelineModel): Array[Double] = { - model.stages.last match { - case m: LinearRegressionModel => - Array(m.intercept) ++ m.weights.toArray - case m: LogisticRegressionModel => - Array(m.intercept) ++ m.weights.toArray - } - } - def getModelCoefficients(model: PipelineModel): Array[Double] = { model.stages.last match { case m: LinearRegressionModel => |