docstr: Transforms the embedded com.microsoft.azure.synapse.ml.core.serialize.params from the companion Java object.
docstr_tok: ["Transforms","the","embedded","com.microsoft.azure.synapse.ml.core.serialize.params","from","the","companion","Java","object","."]
code: def _transfer_params_from_java(self):
      """
      Transforms the embedded com.microsoft.azure.synapse.ml.core.serialize.params from the companion Java object.
      """
      sc = SparkContext._active_spark_context
      for param in self.params:
          if self._java_obj.hasParam(param.name):
              java_param = self._java_obj.getParam(param.name)
              # SPARK-14931: Only check set com.microsoft.azure.synapse.ml.core.serialize.params back to avoid default com.microsoft.azure.synapse.ml.core.serialize.params mismatch.
              complex_param_class = (
                  sc._gateway.jvm.com.microsoft.azure.synapse.ml.core.serialize.ComplexParam._java_lang_class
              )
              is_complex_param = complex_param_class.isAssignableFrom(
                  java_param.getClass(),
              )
              service_param_class = (
                  sc._gateway.jvm.com.microsoft.azure.synapse.ml.param.ServiceParam._java_lang_class
              )
              is_service_param = service_param_class.isAssignableFrom(
                  java_param.getClass(),
              )
              if self._java_obj.isSet(java_param):
                  if is_complex_param:
                      value = self._java_obj.getOrDefault(java_param)
                  elif is_service_param:
                      jvObj = self._java_obj.getOrDefault(java_param)
                      if jvObj.isLeft():
                          value = _java2py(sc, jvObj.value())
                      else:
                          value = None
                  else:
                      value = _java2py(
                          sc, self._java_obj.getOrDefault(java_param)
                      )
                  self._set(**{param.name: value})
  
file_path: SynapseML/core/src/main/python/synapse/ml/core/schema/Utils.py
imports: import sys
  from pyspark.ml.util import JavaMLReadable, JavaMLReader, MLReadable
  from pyspark.ml.wrapper import JavaParams
  from pyspark.ml.common import inherit_doc, _java2py
  from pyspark import SparkContext
label_desc: Use image node_id 1 for calling the ComplexParamsMixin obj's underlying member method code with example usage: obj._transfer_params_from_java() without return types