This is an automated email from the ASF dual-hosted git repository.
srowen pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new d64d6ee [SPARK-30813][ML] Fix Matrices.sprand comments
d64d6ee is described below
commit d64d6ee8ac2e9a105da63cd5e310f486de42b76c
Author: Wu, Xiaochang <[email protected]>
AuthorDate: Mon Mar 2 08:56:17 2020 -0600
[SPARK-30813][ML] Fix Matrices.sprand comments
### What changes were proposed in this pull request?
Fix mistakes in comments
### Why are the changes needed?
There are mistakes in comments
### Does this PR introduce any user-facing change?
No
### How was this patch tested?
N/A
Closes #27564 from xwu99/fix-mllib-sprand-comment.
Authored-by: Wu, Xiaochang <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit ac122762f5091a7abf62d17595e0f5a99374ac5c)
Signed-off-by: Sean Owen <[email protected]>
---
mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala | 2 +-
mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala
b/mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala
index 61d35c8..34e4366 100644
--- a/mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala
+++ b/mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala
@@ -1103,7 +1103,7 @@ object Matrices {
DenseMatrix.rand(numRows, numCols, rng)
/**
- * Generate a `SparseMatrix` consisting of `i.i.d.` gaussian random numbers.
+ * Generate a `SparseMatrix` consisting of `i.i.d.` uniform random numbers.
* @param numRows number of rows of the matrix
* @param numCols number of columns of the matrix
* @param density the desired density for the matrix
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
index 83187d6..57edc96 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala
@@ -1055,7 +1055,7 @@ object Matrices {
DenseMatrix.rand(numRows, numCols, rng)
/**
- * Generate a `SparseMatrix` consisting of `i.i.d.` gaussian random numbers.
+ * Generate a `SparseMatrix` consisting of `i.i.d.` uniform random numbers.
* @param numRows number of rows of the matrix
* @param numCols number of columns of the matrix
* @param density the desired density for the matrix
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]