Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13194#discussion_r64128784
  
    --- Diff: python/pyspark/ml/evaluation.py ---
    @@ -316,17 +335,27 @@ def setParams(self, predictionCol="prediction", 
labelCol="label",
     
     if __name__ == "__main__":
         import doctest
    +    import tempfile
    +    import pyspark.ml.evaluation
         from pyspark.context import SparkContext
         from pyspark.sql import SQLContext
    -    globs = globals().copy()
    +    globs = pyspark.ml.evaluation.__dict__.copy()
    --- End diff --
    
    @thunterdb If we did not make this change, we can work well when using 
```./bin/pyspark``` to run all tests, but it failed when run with 
```./python/run-tests --modules=pyspark-ml```.This issue is weird, I still not 
figure out the root cause, and we did the same changes when we add other 
save/load.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to