Skip to content

Commit a684ac8

Browse files
committed
Address comment.
1 parent e129e06 commit a684ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/ml/stat/Correlation.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ object Correlation {
6262
*
6363
* @note For Spearman, a rank correlation, we need to create an RDD[Double] for each column
6464
* and sort it in order to retrieve the ranks and then join the columns back into an RDD[Vector],
65-
* which is fairly costly. Cache the input RDD before calling corr with `method = "spearman"` to
66-
* avoid recomputing the common lineage.
65+
* which is fairly costly. Cache the input Dataset before calling corr with `method = "spearman"`
66+
* to avoid recomputing the common lineage.
6767
*/
6868
@Since("2.2.0")
6969
def corr(dataset: Dataset[_], column: String, method: String): DataFrame = {

0 commit comments

Comments
 (0)