-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4614][MLLIB] Slight API changes in Matrix and Matrices #3468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #23870 has started for PR 3468 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small, but:
mat.values.toSeq === Seq(1.0, 0.0, 0.0, 1.0) -> mat.values === Array(1.0, 0.0, 0.0, 1.0)
is there any reason the other wouldn't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.equals only check the reference.
scala> Array(1.0, 2.0) == Array(1.0, 2.0)
res0: Boolean = false
|
Looks good to me! Just made one comment, no biggie though, it's fine as is (but if you decide to change it, there are 4 exact copies of it). |
|
Test build #23870 has finished for PR 3468 at commit
|
|
Test FAILed. |
|
@brkyvz |
|
Test build #23884 has started for PR 3468 at commit
|
|
Test build #23884 has finished for PR 3468 at commit
|
|
Test PASSed. |
|
@brkyvz Thanks! I've merged this into master. Will submit another PR for branch-1.2. |
…ices This is #3468 for branch-1.2, same content except mima excludes. Author: Xiangrui Meng <meng@databricks.com> Closes #3482 from mengxr/SPARK-4614-1.2 and squashes the following commits: ea4f08d [Xiangrui Meng] hide transposeMultiply; add rng to rand and randn; add unit tests
Before we have a full picture of the operators we want to add, it might be safer to hide
Matrix.transposeMultiplyin 1.2.0. Another update we want to change isMatrix.randnandMatrix.rand, both of which should take aRandomimplementation. Otherwise, it is very likely to produce inconsistent RDDs. I also added some unit tests for matrix factory methods. All APIs are new in 1.2, so there is no incompatible changes.@brkyvz