Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/1515#discussion_r15203691
--- 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 --
Please also find other missing `.` and update. Thanks!
---
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.
---