You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/06/22 08:28:00 UTC

[jira] [Updated] (SPARK-8511) Modify ML Python tests to remove saved models

     [ https://issues.apache.org/jira/browse/SPARK-8511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph K. Bradley updated SPARK-8511:
-------------------------------------
    Summary: Modify ML Python tests to remove saved models  (was: Modify a test to remove a saved model in `regression.py`)

> Modify ML Python tests to remove saved models
> ---------------------------------------------
>
>                 Key: SPARK-8511
>                 URL: https://issues.apache.org/jira/browse/SPARK-8511
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>            Reporter: Yu Ishikawa
>
> According to the reference of python, {{os.removedirs}} doesn't work if there are any files in the directory we want to remove.
> https://docs.python.org/3/library/os.html#os.removedirs
> Instead of that, using {{shutil.rmtree()}} would be better to remove a temporary directory to test for saving model.
> https://github.com/apache/spark/blob/branch-1.4/python%2Fpyspark%2Fmllib%2Fregression.py#L137



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org