docstr: Transforms the embedded params to the companion Java object.
docstr_tok: ["Transforms","the","embedded","params","to","the","companion","Java","object","."]
code: def _transfer_params_to_java(self):
      """
      Transforms the embedded params to the companion Java object.
      """
      sc = SparkContext._active_spark_context
      pair_defaults = []
      for param in self.params:
          if self.isSet(param):
              service_param_class = (
                  sc._gateway.jvm.com.microsoft.azure.synapse.ml.param.ServiceParam._java_lang_class
              )
              is_service_param = service_param_class.isAssignableFrom(
                  self._java_obj.getParam(param.name).getClass(),
              )
              if is_service_param:
                  getattr(
                      self._java_obj,
                      "set{}".format(
                          param.name[0].upper() + param.name[1:]
                      ),
                  )(self._paramMap[param])
              else:
                  pair = self._make_java_param_pair(
                      param, self._paramMap[param]
                  )
                  self._java_obj.set(pair)
          if self.hasDefault(param):
              pair = self._make_java_param_pair(
                  param, self._defaultParamMap[param]
              )
              pair_defaults.append(pair)
      if len(pair_defaults) > 0:
          sc = SparkContext._active_spark_context
          pair_defaults_seq = sc._jvm.PythonUtils.toSeq(pair_defaults)
          self._java_obj.setDefault(pair_defaults_seq)
  
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 2 for calling the ComplexParamsMixin obj's underlying member method code with example usage: obj._transfer_params_to_java() without return types