Github user brkyvz commented on a diff in the pull request:
https://github.com/apache/spark/pull/1515#discussion_r15204194
--- Diff: examples/src/main/python/logistic_regression.py ---
@@ -47,9 +47,15 @@ def readPointBatch(iterator):
return [matrix]
if __name__ == "__main__":
+
if len(sys.argv) != 3:
print >> sys.stderr, "Usage: logistic_regression <file>
<iterations>"
exit(-1)
+
+ print >> sys.stderr, """WARN: This is a naive implementation of
Logistic Regression and is
+ given as an example! Please refer to
examples/src/main/python/mllib/logistic_regression.py
+ to see how MLlib's implementation is used"""
--- End diff --
In the comments up top, most sentences end with the package of the
algorithm, such as org.apache.spark.mllib.ALS. I didn't add a dot there, unlike
the previous sentence, in order to not lead to confusion. Should I?
---
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 feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---