Skip to content

Commit dc4cbb3

Browse files
committed
mark distribute matrices experimental
1 parent 6b9f8e2 commit dc4cbb3

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/CoordinateMatrix.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package org.apache.spark.mllib.linalg.distributed
1919

2020
import breeze.linalg.{DenseMatrix => BDM}
2121

22+
import org.apache.spark.annotation.Experimental
2223
import org.apache.spark.rdd.RDD
2324
import org.apache.spark.SparkContext._
2425
import org.apache.spark.mllib.linalg.Vectors
@@ -32,6 +33,8 @@ import org.apache.spark.mllib.linalg.Vectors
3233
case class MatrixEntry(i: Long, j: Long, value: Double)
3334

3435
/**
36+
* :: Experimental ::
37+
*
3538
* Represents a matrix in coordinate format.
3639
*
3740
* @param entries matrix entries
@@ -40,6 +43,7 @@ case class MatrixEntry(i: Long, j: Long, value: Double)
4043
* @param nCols number of columns. A non-positive value means unknown, and then the number of
4144
* columns will be determined by the max column index plus one.
4245
*/
46+
@Experimental
4347
class CoordinateMatrix(
4448
val entries: RDD[MatrixEntry],
4549
private var nRows: Long,

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/DistributedMatrix.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package org.apache.spark.mllib.linalg.distributed
1919

2020
import breeze.linalg.{DenseMatrix => BDM}
2121

22-
import org.apache.spark.mllib.linalg.Matrix
23-
2422
/**
2523
* Represents a distributively stored matrix backed by one or more RDDs.
2624
*/

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/IndexedRowMatrix.scala

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ package org.apache.spark.mllib.linalg.distributed
1919

2020
import breeze.linalg.{DenseMatrix => BDM}
2121

22+
import org.apache.spark.annotation.Experimental
2223
import org.apache.spark.rdd.RDD
2324
import org.apache.spark.mllib.linalg._
2425
import org.apache.spark.mllib.linalg.SingularValueDecomposition
2526

26-
/** Represents a row of [[org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix]]. */
27+
/**
28+
* :: Experimental ::
29+
*
30+
* Represents a row of [[org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix]].
31+
*/
32+
@Experimental
2733
case class IndexedRow(index: Long, vector: Vector)
2834

2935
/**
36+
* :: Experimental ::
37+
*
3038
* Represents a row-oriented [[org.apache.spark.mllib.linalg.distributed.DistributedMatrix]] with
3139
* indexed rows.
3240
*
@@ -36,6 +44,7 @@ case class IndexedRow(index: Long, vector: Vector)
3644
* @param nCols number of columns. A non-positive value means unknown, and then the number of
3745
* columns will be determined by the size of the first row.
3846
*/
47+
@Experimental
3948
class IndexedRowMatrix(
4049
val rows: RDD[IndexedRow],
4150
private var nRows: Long,

mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ import breeze.linalg.{DenseMatrix => BDM, DenseVector => BDV, svd => brzSvd}
2323
import breeze.numerics.{sqrt => brzSqrt}
2424
import com.github.fommil.netlib.BLAS.{getInstance => blas}
2525

26+
import org.apache.spark.annotation.Experimental
2627
import org.apache.spark.mllib.linalg._
2728
import org.apache.spark.rdd.RDD
2829
import org.apache.spark.Logging
2930

3031
/**
32+
* :: Experimental ::
33+
*
3134
* Represents a row-oriented distributed Matrix with no meaningful row indices.
3235
*
3336
* @param rows rows stored as an RDD[Vector]
@@ -36,6 +39,7 @@ import org.apache.spark.Logging
3639
* @param nCols number of columns. A non-positive value means unknown, and then the number of
3740
* columns will be determined by the size of the first row.
3841
*/
42+
@Experimental
3943
class RowMatrix(
4044
val rows: RDD[Vector],
4145
private var nRows: Long,

0 commit comments

Comments
 (0)