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
Contributor

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 ACCEPTED SOLUTION

Accepted Solutions

liu
Contributor

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

2 REPLIES 2

liu
Contributor

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
Contributor

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.