Skip to content
Snippets Groups Projects
  • MechCoder's avatar
    2b40365d
    [SPARK-7785] [MLLIB] [PYSPARK] Add __str__ and __repr__ to Matrices · 2b40365d
    MechCoder authored
    Adding __str__ and  __repr__ to DenseMatrix and SparseMatrix
    
    Author: MechCoder <manojkumarsivaraj334@gmail.com>
    
    Closes #6342 from MechCoder/spark-7785 and squashes the following commits:
    
    7b9a82c [MechCoder] Add tests for greater than 16 elements
    b88e9dd [MechCoder] Increment limit to 16
    1425a01 [MechCoder] Change tests
    36bd166 [MechCoder] Change str and repr representation
    97f0da9 [MechCoder] zip is same as izip in python3
    94ca4b2 [MechCoder] Added doctests and iterate over values instead of colPtrs
    b26fa89 [MechCoder] minor
    394dde9 [MechCoder] [SPARK-7785] Add __str__ and __repr__ to Matrices
    2b40365d
    History
    [SPARK-7785] [MLLIB] [PYSPARK] Add __str__ and __repr__ to Matrices
    MechCoder authored
    Adding __str__ and  __repr__ to DenseMatrix and SparseMatrix
    
    Author: MechCoder <manojkumarsivaraj334@gmail.com>
    
    Closes #6342 from MechCoder/spark-7785 and squashes the following commits:
    
    7b9a82c [MechCoder] Add tests for greater than 16 elements
    b88e9dd [MechCoder] Increment limit to 16
    1425a01 [MechCoder] Change tests
    36bd166 [MechCoder] Change str and repr representation
    97f0da9 [MechCoder] zip is same as izip in python3
    94ca4b2 [MechCoder] Added doctests and iterate over values instead of colPtrs
    b26fa89 [MechCoder] minor
    394dde9 [MechCoder] [SPARK-7785] Add __str__ and __repr__ to Matrices