Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

fix typo in spark-28159
transfromWithMean -> transformWithMean

How was this patch tested?

existing test

@SparkQA
Copy link

SparkQA commented Jul 12, 2019

Test build #107578 has finished for PR 25129 at commit 8adbf49.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

} else {
val (ids: List[Int], cts: Array[Double]) = vector match {
case v: DenseVector => ((0 until v.size).toList, v.values)
case v: DenseVector => (List.range(0, v.size), v.values)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR title or remove this from this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is OK, as it mirrors a similar change (optimization) we made in the previous PR. You're right it's orthogonal to the typo fix, but will be fine to add.

@zhengruifeng zhengruifeng changed the title [SPARK-28159][ML][FOLLOWUP] fix typo [SPARK-28159][ML][FOLLOWUP] fix typo & (0 until v.size).toList => List.range(0, v.size) Jul 12, 2019
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Thank you, @zhengruifeng and @srowen .
+1, LGTM, too. Merged to master.

@zhengruifeng zhengruifeng deleted the to_ml_vec_cleanup branch July 15, 2019 03:11
vinodkc pushed a commit to vinodkc/spark that referenced this pull request Jul 18, 2019
…t.range(0, v.size)

## What changes were proposed in this pull request?
fix typo in spark-28159
`transfromWithMean` -> `transformWithMean`

## How was this patch tested?
existing test

Closes apache#25129 from zhengruifeng/to_ml_vec_cleanup.

Authored-by: zhengruifeng <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants