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

    https://github.com/apache/spark/pull/929#discussion_r15566629
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/recommendation/ALS.scala ---
    @@ -255,6 +255,9 @@ class ALS private (
               rank, lambda, alpha, YtY)
             previousProducts.unpersist()
             logInfo("Re-computing U given I (Iteration %d/%d)".format(iter, 
iterations))
    +        if (sc.checkpointDir.isDefined && (iter % 3 == 1)) {
    --- End diff --
    
    Do we need to checkpoint the first RDD? If `iter` starts at `1`, we can use 
`iter % 3 == 0` and hence the checkpoint RDDs are `product-3`, `product-6`, 
`product-9`, etc.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to