Skip to content
Snippets Groups Projects
  • wm624@hotmail.com's avatar
    63b200e8
    [SPARK-14071][PYSPARK][ML] Change MLWritable.write to be a property · 63b200e8
    wm624@hotmail.com authored
    Add property to MLWritable.write method, so we can use .write instead of .write()
    
    Add a new test to ml/test.py to check whether the write is a property.
    ./python/run-tests --python-executables=python2.7 --modules=pyspark-ml
    
    Will test against the following Python executables: ['python2.7']
    Will test the following Python modules: ['pyspark-ml']
    Finished test(python2.7): pyspark.ml.evaluation (11s)
    Finished test(python2.7): pyspark.ml.clustering (16s)
    Finished test(python2.7): pyspark.ml.classification (24s)
    Finished test(python2.7): pyspark.ml.recommendation (24s)
    Finished test(python2.7): pyspark.ml.feature (39s)
    Finished test(python2.7): pyspark.ml.regression (26s)
    Finished test(python2.7): pyspark.ml.tuning (15s)
    Finished test(python2.7): pyspark.ml.tests (30s)
    Tests passed in 55 seconds
    
    Author: wm624@hotmail.com <wm624@hotmail.com>
    
    Closes #11945 from wangmiao1981/fix_property.
    63b200e8
    History
    [SPARK-14071][PYSPARK][ML] Change MLWritable.write to be a property
    wm624@hotmail.com authored
    Add property to MLWritable.write method, so we can use .write instead of .write()
    
    Add a new test to ml/test.py to check whether the write is a property.
    ./python/run-tests --python-executables=python2.7 --modules=pyspark-ml
    
    Will test against the following Python executables: ['python2.7']
    Will test the following Python modules: ['pyspark-ml']
    Finished test(python2.7): pyspark.ml.evaluation (11s)
    Finished test(python2.7): pyspark.ml.clustering (16s)
    Finished test(python2.7): pyspark.ml.classification (24s)
    Finished test(python2.7): pyspark.ml.recommendation (24s)
    Finished test(python2.7): pyspark.ml.feature (39s)
    Finished test(python2.7): pyspark.ml.regression (26s)
    Finished test(python2.7): pyspark.ml.tuning (15s)
    Finished test(python2.7): pyspark.ml.tests (30s)
    Tests passed in 55 seconds
    
    Author: wm624@hotmail.com <wm624@hotmail.com>
    
    Closes #11945 from wangmiao1981/fix_property.