diff options
author | DB Tsai <dbt@netflix.com> | 2016-05-27 14:02:39 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-05-27 14:02:39 -0700 |
commit | 21b2605dc4900894ea7a911e039781ecc2a18c14 (patch) | |
tree | 033e2083e4db2951acb9a76d14a0b530ad412f69 /project | |
parent | 130b8d07b8eb08f2ad522081a95032b90247094d (diff) | |
download | spark-21b2605dc4900894ea7a911e039781ecc2a18c14.tar.gz spark-21b2605dc4900894ea7a911e039781ecc2a18c14.tar.bz2 spark-21b2605dc4900894ea7a911e039781ecc2a18c14.zip |
[SPARK-15413][ML][MLLIB] Change `toBreeze` to `asBreeze` in Vector and Matrix
## What changes were proposed in this pull request?
We're using `asML` to convert the mllib vector/matrix to ml vector/matrix now. Using `as` is more correct given that this conversion actually shares the same underline data structure. As a result, in this PR, `toBreeze` will be changed to `asBreeze`. This is a private API, as a result, it will not affect any user's application.
## How was this patch tested?
unit tests
Author: DB Tsai <dbt@netflix.com>
Closes #13198 from dbtsai/minor.
Diffstat (limited to 'project')
-rw-r--r-- | project/MimaExcludes.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala index 73debe9da4..9d0d9b1be0 100644 --- a/project/MimaExcludes.scala +++ b/project/MimaExcludes.scala @@ -775,6 +775,9 @@ object MimaExcludes { ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.annotation.AlphaComponent"), ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.annotation.Experimental"), ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.annotation.DeveloperApi") + ) ++ Seq( + ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.mllib.linalg.Vector.asBreeze"), + ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.mllib.linalg.Matrix.asBreeze") ) case v if v.startsWith("1.6") => Seq( |