Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/1515#discussion_r15196704
--- Diff: examples/src/main/python/als.py ---
@@ -49,6 +51,9 @@ def update(i, vec, mat, ratings):
if __name__ == "__main__":
+
+ print """WARNING: THIS IS A NAIVE IMPLEMENTATION OF ALS AND IS GIVEN
AS AN EXAMPLE!
--- End diff --
print >> sys.stderr, """WARNING` (output to stderr) This block should be
under the `Usage` block because `print` is part of the execution, which should
come after doc.
Only capitalizing `WARNING` or shorter `WARN` should be sufficient. It is
hard to read with all uppercase letters.
---
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.
---