Skip to content
Snippets Groups Projects
  • Yanbo Liang's avatar
    4ae4d547
    [SPARK-9793] [MLLIB] [PYSPARK] PySpark DenseVector, SparseVector implement... · 4ae4d547
    Yanbo Liang authored
    [SPARK-9793] [MLLIB] [PYSPARK] PySpark DenseVector, SparseVector implement __eq__ and __hash__ correctly
    
    PySpark DenseVector, SparseVector ```__eq__``` method should use semantics equality, and DenseVector can compared with SparseVector.
    Implement PySpark DenseVector, SparseVector ```__hash__``` method based on the first 16 entries. That will make PySpark Vector objects can be used in collections.
    
    Author: Yanbo Liang <ybliang8@gmail.com>
    
    Closes #8166 from yanboliang/spark-9793.
    4ae4d547
    History
    [SPARK-9793] [MLLIB] [PYSPARK] PySpark DenseVector, SparseVector implement...
    Yanbo Liang authored
    [SPARK-9793] [MLLIB] [PYSPARK] PySpark DenseVector, SparseVector implement __eq__ and __hash__ correctly
    
    PySpark DenseVector, SparseVector ```__eq__``` method should use semantics equality, and DenseVector can compared with SparseVector.
    Implement PySpark DenseVector, SparseVector ```__hash__``` method based on the first 16 entries. That will make PySpark Vector objects can be used in collections.
    
    Author: Yanbo Liang <ybliang8@gmail.com>
    
    Closes #8166 from yanboliang/spark-9793.