Github user KyleLi1985 commented on the issue:

    https://github.com/apache/spark/pull/23126
  
    After add this commit
    We get the result for RowMatrix computeCovariance function:
    
    For the input data
    1.0,2.0,3.0,4.0,5.0
    2.0,3.0,1.0,2.0,6.0
    
    RowMatrix function computeCovariance result:
    2.5 1.75
    1.75 3.7
    
    For the input data generated by 
    data1 = np.random.normal(loc=100000, scale=0.000009, size=10000000)
    data2 = np.random.normal(loc=200000, scale=0.000002,size=10000000)
    
    RowMatrix function computeCovariance result:
    8.109505250896888E-11   -5.003160564607658E-15 
    -5.003160564607658E-15  4.08276584628234E-12
    
    
    



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to