You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/06/21 18:59:00 UTC

[jira] [Commented] (SPARK-8511) Modify a test to remove a saved model in `regression.py`

    [ https://issues.apache.org/jira/browse/SPARK-8511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595124#comment-14595124 ] 

Apache Spark commented on SPARK-8511:
-------------------------------------

User 'yu-iskw' has created a pull request for this issue:
https://github.com/apache/spark/pull/6926

> Modify a test to remove a saved model in `regression.py`
> --------------------------------------------------------
>
>                 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