Can serverless environments not use SynapseML's LightGBM?

liu
Databricks Partner

When I use LightGBM, I get the following error on the line below: 'str' object has no attribute 'getParam'.

Is this because serverless cannot run the JAR files that SynapseML depends on?

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b0d5f8ce-8426-443c-973e-3af363376fa4/lib/python3.12/site-packages/synapse/ml/core/serialize/java_params_patch.py:122, in _mml_make_java_param_pair(self, param, value)
    120 sc = SparkContext._active_spark_context
    121 param = self._resolveParam(param)
--> 122 java_param = self._java_obj.getParam(param.name)
    123 java_value = _mml_py2java(sc, value)
    124 return java_param.w(java_value)

 

liu
Databricks Partner

Sorry, I just found out while checking the official documentation that starting from November, dependency JAR files are supported.

I’ll give it a try and see how well it works.

If anyone has any insights, I would greatly appreciate your guidance.

liu
Databricks Partner

Oh, it seems i misunderstood someting...

Still haven't found a solution.However, since the notebook environment can run the original LightGBM , I can use that for now.

If anyone has any suggestions or ideas, your guidance would be greatly appreciated.

 

View solution in original post