shahidki31 commented on a change in pull request #26038:
[SPARK-29235][ML][Pyspark]Support avgMetrics in read/write of
CrossValidatorModel
URL: https://github.com/apache/spark/pull/26038#discussion_r336565400
##########
File path: python/pyspark/ml/tuning.py
##########
@@ -829,13 +850,11 @@ def _to_java(self):
:return: Java object equivalent to this instance.
"""
- sc = SparkContext._active_spark_context
- # TODO: persst validation metrics as well
_java_obj = JavaParams._new_java_obj(
"org.apache.spark.ml.tuning.TrainValidationSplitModel",
self.uid,
self.bestModel._to_java(),
- _py2java(sc, []))
+ self.validationMetrics)
Review comment:
I think we will be converting _py2java here?
https://github.com/apache/spark/blob/9e42c52c7728250547aa044f8c28f93de9940460/python/pyspark/ml/wrapper.py#L60-L69
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]