Skip to content
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

[SPARK-11549][Docs] Replace example code in mllib-evaluation-metrics.md using include_example #9689

Closed
wants to merge 13 commits into from

Conversation

vikasnp
Copy link

@vikasnp vikasnp commented Nov 13, 2015

No description provided.

import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;

public class JavaBinaryClassification {
Copy link
Contributor

Choose a reason for hiding this comment

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

We'd better making these class names more concretely. I.e. JavaBinaryClassificatinMetricsExample. And the same for the following classes.

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

add a space line

@vikasnp
Copy link
Author

vikasnp commented Nov 19, 2015

@yinxusen Thanks for patiently pointing out the issues. I've fixed them. Please test it.

@SparkQA
Copy link

SparkQA commented Nov 19, 2015

Test build #46322 has finished for PR 9689 at commit 1c5cc8f.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * public class JavaBinaryClassificationMetricsExample\n * public class JavaMultiLabelClassificationMetricsExample\n * public class JavaMulticlassClassificationMetricsExample\n * SparkConf conf = new SparkConf().setAppName(\"Multi class Classification Metrics Example\");\n * public class JavaRankingMetricsExample\n * public class JavaRegressionMetricsExample\n


package org.apache.spark.examples.mllib

// $example on$
Copy link
Contributor

Choose a reason for hiding this comment

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

remove it, there are two $example on$

@yinxusen
Copy link
Contributor

@mengxr LGTM except for some minor issues.

@vikasnp
Copy link
Author

vikasnp commented Nov 19, 2015

@yinxusen @mengxr Style tests passed this time. I've removed those extra lines

@SparkQA
Copy link

SparkQA commented Nov 19, 2015

Test build #46324 has finished for PR 9689 at commit 88512e7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * public class JavaBinaryClassificationMetricsExample\n * public class JavaMultiLabelClassificationMetricsExample\n * public class JavaMulticlassClassificationMetricsExample\n * SparkConf conf = new SparkConf().setAppName(\"Multi class Classification Metrics Example\");\n * public class JavaRankingMetricsExample\n * public class JavaRegressionMetricsExample\n

@vikasnp
Copy link
Author

vikasnp commented Nov 19, 2015

@yinxusen @mengxr Can we merge this, if there aren't any further issues?

asfgit pushed a commit that referenced this pull request Nov 20, 2015
…md using include_example

Author: Vikas Nelamangala <vikasnelamangala@Vikass-MacBook-Pro.local>

Closes #9689 from vikasnp/master.

(cherry picked from commit ed47b1e)
Signed-off-by: Xiangrui Meng <meng@databricks.com>
@mengxr
Copy link
Contributor

mengxr commented Nov 20, 2015

Merged into master and branch-1.6. Thanks!

@asfgit asfgit closed this in ed47b1e Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants