Github user thunterdb commented on a diff in the pull request:
https://github.com/apache/spark/pull/13194#discussion_r64090534
--- 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 --
can you explain why you need this change (and add a comment about it)?
---
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]