zhengruifeng commented on code in PR #49674:
URL: https://github.com/apache/spark/pull/49674#discussion_r1929701869
##########
python/pyspark/ml/util.py:
##########
@@ -135,7 +135,9 @@ def wrapped(self: "JavaEstimator", dataset:
"ConnectDataFrame") -> Any:
(_, properties, _) = client.execute_command(command)
model_info = deserialize(properties)
client.add_ml_cache(model_info.obj_ref.id)
- return model_info.obj_ref.id
+ model = self._create_model(model_info.obj_ref.id)
+ model._resetUid(self.uid)
Review Comment:
why not also passing `uid` to the java class constructors?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]