Skip to content

Conversation

@movelikeriver
Copy link
Contributor

Refine naive Bayes example by checking model after loading it

@andrewor14
Copy link
Contributor

@movelikeriver
Copy link
Contributor Author

https://issues.apache.org/jira/browse/SPARK-13257
how to add the JIRA into the pull request?

On Tue, Feb 9, 2016 at 11:28 AM, andrewor14 [email protected]
wrote:

Please file a JIRA
https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark


Reply to this email directly or view it on GitHub
#11125 (comment).

@andrewor14
Copy link
Contributor

Change the title to [SPARK-13257] .... See how other PRs are named.

@movelikeriver movelikeriver changed the title Refine naive Bayes example by checking model after loading it [SPARK-13257] [Improvement] Refine naive Bayes example by checking model after loading it Feb 10, 2016

sc = SparkContext(appName="PythonNaiveBayesExample")

WORK_DIR = './'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not necessary. There is a tradeoff between code simplicity and robustness. The main purpose of this example code is to be included in the user guide. See the source code of https://github.com/apache/spark/blob/master/docs/mllib-naive-bayes.md. So simplicity is more important.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed. i added this, because it's easy for me to modify the WORK_DIR. agree, simplicity is more important for this sample code.

@mengxr
Copy link
Contributor

mengxr commented Feb 11, 2016

@movelikeriver Thanks for improving the example code! We want to keep the example code simple because they are included in the user guide. So there are some special trade-offs. Also, if you make changes to the Python example code, do you mind updating the Java and Scala examples as well? They should be synced. Thanks!

@movelikeriver
Copy link
Contributor Author

okay, i'll take a look at java and scala code as well, and create another change soon.

@mengxr
Copy link
Contributor

mengxr commented Feb 12, 2016

ok to test

@SparkQA
Copy link

SparkQA commented Feb 12, 2016

Test build #51166 has finished for PR 11125 at commit 7e3ea32.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@mengxr
Copy link
Contributor

mengxr commented Feb 23, 2016

LGTM. Merged into master. Thanks!

@asfgit asfgit closed this in 5cd3e6f Feb 23, 2016
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.

4 participants