Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1515#discussion_r15204513
  
    --- 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 --
    
    Usually in Scala doc, we should use `[[org.apache.spark.mllib.ALS]]` in 
order to create a link in the generated html doc. With `[[...]]`, it is easy to 
add the period. You can also try to avoid having the classname at the end of 
the sentence.


---
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.
---

Reply via email to