[GitHub] spark issue #18237: Fix bug in JavaRegressionMetricsExample.

2017-06-09 Thread masterwugui
Github user masterwugui commented on the issue: https://github.com/apache/spark/pull/18237 sry. i am green hand here. is this right now? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not

[GitHub] spark issue #18237: Create JavaRegressionMetricsExample.java

2017-06-09 Thread masterwugui
Github user masterwugui commented on the issue: https://github.com/apache/spark/pull/18237 i have fixed the title, is that right? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] spark issue #18237: Create JavaRegressionMetricsExample.java

2017-06-09 Thread masterwugui
Github user masterwugui commented on the issue: https://github.com/apache/spark/pull/18237 thank you for your comment. however,i found this bug because i run it in debug mode,and the last element in v is always null. you see, the recyle is from index 1 to parts.length -1. so

[GitHub] spark pull request #18237: Create JavaRegressionMetricsExample.java

2017-06-08 Thread masterwugui
GitHub user masterwugui opened a pull request: https://github.com/apache/spark/pull/18237 Create JavaRegressionMetricsExample.java the original code cant visit the last element of the"parts" array. so the v[v.length–1] always equals 0 ## What changes were p