diff options
author | MechCoder <manojkumarsivaraj334@gmail.com> | 2015-07-02 11:28:14 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-07-02 11:28:14 -0700 |
commit | 34d448dbe1d7bd5bf9a8d6ef473878e570ca6161 (patch) | |
tree | 6a0b8df867906b89b5358da9ea60ce62fb7541d5 /project | |
parent | 2e2f32603c110b9c6ddfbb836f63882eacf0a8cc (diff) | |
download | spark-34d448dbe1d7bd5bf9a8d6ef473878e570ca6161.tar.gz spark-34d448dbe1d7bd5bf9a8d6ef473878e570ca6161.tar.bz2 spark-34d448dbe1d7bd5bf9a8d6ef473878e570ca6161.zip |
[SPARK-8479] [MLLIB] Add numNonzeros and numActives to linalg.Matrices
Matrices allow zeros to be stored in values. Sometimes a method is handy to check if the numNonZeros are same as number of Active values.
Author: MechCoder <manojkumarsivaraj334@gmail.com>
Closes #6904 from MechCoder/nnz_matrix and squashes the following commits:
252c6b7 [MechCoder] Add to MiMa excludes
e2390f5 [MechCoder] Use count instead of foreach
2f62b2f [MechCoder] Add to MiMa excludes
d6e96ef [MechCoder] [SPARK-8479] Add numNonzeros and numActives to linalg.Matrices
Diffstat (limited to 'project')
-rw-r--r-- | project/MimaExcludes.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala index 6f86a505b3..680b699e9e 100644 --- a/project/MimaExcludes.scala +++ b/project/MimaExcludes.scala @@ -75,6 +75,12 @@ object MimaExcludes { "org.apache.spark.sql.parquet.ParquetTypeInfo"), ProblemFilters.exclude[MissingClassProblem]( "org.apache.spark.sql.parquet.ParquetTypeInfo$") + ) ++ Seq( + // SPARK-8479 Add numNonzeros and numActives to Matrix. + ProblemFilters.exclude[MissingMethodProblem]( + "org.apache.spark.mllib.linalg.Matrix.numNonzeros"), + ProblemFilters.exclude[MissingMethodProblem]( + "org.apache.spark.mllib.linalg.Matrix.numActives") ) case v if v.startsWith("1.4") => Seq( |