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

    https://github.com/apache/spark/pull/5173#discussion_r28483636
  
    --- Diff: python/pyspark/mllib/recommendation.py ---
    @@ -61,7 +61,7 @@ class MatrixFactorizationModel(JavaModelWrapper, 
JavaSaveable, JavaLoader):
     
         >>> model = ALS.train(ratings, 4, seed=10)
         >>> model.userFeatures().collect()
    -    [(1, array('d', [...])), (2, array('d', [...]))]
    +    [(1, DenseVector([...])), (2, DenseVector([...]))]
    --- End diff --
    
    We shouldn't change the return type. I'm not sure `DenseVector` is a safe 
replacement for array.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to