This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new cd8f86a  [SPARK-30813][ML] Fix Matrices.sprand comments
cd8f86a is described below

commit cd8f86aafeb2ee5796476bd2cc14e71851611062
Author: Wu, Xiaochang <xiaochang...@intel.com>
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 <xiaochang...@intel.com>
    Signed-off-by: Sean Owen <sro...@gmail.com>
    (cherry picked from commit ac122762f5091a7abf62d17595e0f5a99374ac5c)
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 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 14428c6..5e3c37a 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 e474cfa..0c29198 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: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to