-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Update GradientDescentSuite.scala #588
Conversation
use more faster way to construct an array
Can one of the admins verify this patch? |
IMHO this will not compile if used like this |
Should use |
@@ -81,11 +81,11 @@ class GradientDescentSuite extends FunSuite with LocalSparkContext with ShouldMa | |||
// Add a extra variable consisting of all 1.0's for the intercept. | |||
val testData = GradientDescentSuite.generateGDInput(A, B, nPoints, 42) | |||
val data = testData.map { case LabeledPoint(label, features) => | |||
label -> Vectors.dense(1.0, features.toArray: _*) | |||
label -> (1.0 +: features) |
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.
This won't compile either, we need to write features +: 1.0
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.
Same for other changes too.
@mengxr yupp that would be better. |
modify to Vectors.dense(1.0 +: features)
I had modify the code to Vectors.dense(1.0 +: features) . |
@baishuo change it to |
had modified, thanks to @techaddict @mengxr |
Jenkins, test this please. |
Merged build triggered. |
Merged build started. |
Merged build finished. |
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14581/ |
Hi guys @mengxr @techaddict , Is there something need to do before merge? :) |
(I'd be curious to know why this might or might not be faster, if someone has the time to sketch an explanation. I don't doubt it might be.) |
@srowen They are the same because in |
LGTM. |
Merged, thanks. |
use more faster way to construct an array Author: baishuo(白硕) <[email protected]> Closes #588 from baishuo/master and squashes the following commits: 45b95fb [baishuo(白硕)] Update GradientDescentSuite.scala c03b61c [baishuo(白硕)] Update GradientDescentSuite.scala b666d27 [baishuo(白硕)] Update GradientDescentSuite.scala (cherry picked from commit 0c19bb1) Signed-off-by: Patrick Wendell <[email protected]>
the same reason as #588 Author: baishuo(白硕) <[email protected]> Closes #815 from baishuo/master and squashes the following commits: 6876c1e [baishuo(白硕)] Update LBFGSSuite.scala
the same reason as #588 Author: baishuo(白硕) <[email protected]> Closes #815 from baishuo/master and squashes the following commits: 6876c1e [baishuo(白硕)] Update LBFGSSuite.scala (cherry picked from commit a08262d) Signed-off-by: Reynold Xin <[email protected]>
use more faster way to construct an array Author: baishuo(白硕) <[email protected]> Closes apache#588 from baishuo/master and squashes the following commits: 45b95fb [baishuo(白硕)] Update GradientDescentSuite.scala c03b61c [baishuo(白硕)] Update GradientDescentSuite.scala b666d27 [baishuo(白硕)] Update GradientDescentSuite.scala
the same reason as apache#588 Author: baishuo(白硕) <[email protected]> Closes apache#815 from baishuo/master and squashes the following commits: 6876c1e [baishuo(白硕)] Update LBFGSSuite.scala
Spark-742: TaskMetrics should not employ per-record timing.
## Upstream SPARK-XXXXX ticket and PR link (if not applicable, explain) When running verbose conda commands, outputs via `log.info` are not being logged, but outputs with `logInfo` are. We also want to log the conda command in the case the verbosity flag is on (>0). ## What changes were proposed in this pull request? Change the logging of the conda command to `logInfo` and log the command when the verbosity flag is on. ## How was this patch tested? N/A.
* Change ARM jobs according to job naming notitions - hbase-arm-build -> hbase-build-arm64 - hive-build-arm64 -> hive-build-arm64 - update hbase job description - use "arm64" instead of "aarch64" Related-Bug: theopenlab/openlab#318
…pache#588) consume Kafka / MapR Streams.
use more faster way to construct an array