Skip to content

Conversation

@huangweizhe123
Copy link
Contributor

@huangweizhe123 huangweizhe123 commented Jun 22, 2018

What changes were proposed in this pull request?

The example wants to create a dense matrix ((1.0, 2.0), (3.0, 4.0), (5.0, 6.0)), but the list is given as [1, 2, 3, 4, 5, 6]. Now it is changed as [1, 3, 5, 2, 4, 6].

And the example wants to create an RDD of coordinate entries like:
entries = sc.parallelize([(0, 0, 1.2), (1, 0, 2.1), (2, 1, 3.7)]).
However, it is done with the MatrixEntry class like:
entries = sc.parallelize([MatrixEntry(0, 0, 1.2), MatrixEntry(1, 0, 2.1), MatrixEntry(6, 1, 3.7)]),
where the third MatrixEntry has a different row index.
Now it is changed as MatrixEntry(2, 1, 3.7).

How was this patch tested?

This is trivial enough that it should not affect tests.

Author: Weizhe Huang [email protected]

Please review http://spark.apache.org/contributing.html before opening a pull request.

….0)), the list should be [1, 3, 5, 2, 4, 6].
@huangweizhe123
Copy link
Contributor Author

ok to test

@huangweizhe123 huangweizhe123 changed the title [SPARK-24628][MLlib]If you want to create a dense matrix ((1.0, 2.0), (3.0, 4.0), (5.0, 6… [SPARK-24628][DOC]If you want to create a dense matrix ((1.0, 2.0), (3.0, 4.0), (5.0, 6… Jun 25, 2018
@huangweizhe123 huangweizhe123 changed the title [SPARK-24628][DOC]If you want to create a dense matrix ((1.0, 2.0), (3.0, 4.0), (5.0, 6… [SPARK-24628][DOC]Typos in docs/mllib-data-types.md Jun 25, 2018
@huangweizhe123 huangweizhe123 changed the title [SPARK-24628][DOC]Typos in docs/mllib-data-types.md [SPARK-24628][DOC]Typos of the example code in docs/mllib-data-types.md Jun 25, 2018
@huangweizhe123
Copy link
Contributor Author

Jenkins, retest this please

@huangweizhe123
Copy link
Contributor Author

cc @gatorsmile @marmbrus It seems that no one is gonna test this patch. Do I need to ask someone to add Spark QA as a participant?

@srowen
Copy link
Member

srowen commented Jul 18, 2018

Merged to master

@asfgit asfgit closed this in ebe9e28 Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants