cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can serverless environments not use SynapseML's LightGBM?

liu
New Contributor III

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)

 

1 REPLY 1

liu
New Contributor III

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.