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 21:03:00 UTC

[jira] [Resolved] (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 resolved SPARK-8511.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.1
                   1.5.0

Issue resolved by pull request 6926
[https://github.com/apache/spark/pull/6926]

> 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
>             Fix For: 1.5.0, 1.4.1
>
>
> 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