Skip to content
Snippets Groups Projects
  • Sandy Ryza's avatar
    20ea54cc
    [SPARK-2461] [PySpark] Add a toString method to GeneralizedLinearModel · 20ea54cc
    Sandy Ryza authored
    Add a toString method to GeneralizedLinearModel, also change `__str__` to `__repr__` for some classes, to provide better message in repr.
    
    This PR is based on #1388, thanks to sryza!
    
    closes #1388
    
    Author: Sandy Ryza <sandy@cloudera.com>
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2625 from davies/string and squashes the following commits:
    
    3544aad [Davies Liu] fix LinearModel
    0bcd642 [Davies Liu] Merge branch 'sandy-spark-2461' of github.com:sryza/spark
    1ce5c2d [Sandy Ryza] __repr__ back to __str__ in a couple places
    aa9e962 [Sandy Ryza] Switch __str__ to __repr__
    a0c5041 [Sandy Ryza] Add labels back in
    1aa17f5 [Sandy Ryza] Match existing conventions
    fac1bc4 [Sandy Ryza] Fix PEP8 error
    f7b58ed [Sandy Ryza] SPARK-2461. Add a toString method to GeneralizedLinearModel
    20ea54cc
    History
    [SPARK-2461] [PySpark] Add a toString method to GeneralizedLinearModel
    Sandy Ryza authored
    Add a toString method to GeneralizedLinearModel, also change `__str__` to `__repr__` for some classes, to provide better message in repr.
    
    This PR is based on #1388, thanks to sryza!
    
    closes #1388
    
    Author: Sandy Ryza <sandy@cloudera.com>
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2625 from davies/string and squashes the following commits:
    
    3544aad [Davies Liu] fix LinearModel
    0bcd642 [Davies Liu] Merge branch 'sandy-spark-2461' of github.com:sryza/spark
    1ce5c2d [Sandy Ryza] __repr__ back to __str__ in a couple places
    aa9e962 [Sandy Ryza] Switch __str__ to __repr__
    a0c5041 [Sandy Ryza] Add labels back in
    1aa17f5 [Sandy Ryza] Match existing conventions
    fac1bc4 [Sandy Ryza] Fix PEP8 error
    f7b58ed [Sandy Ryza] SPARK-2461. Add a toString method to GeneralizedLinearModel