cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

Synapse ML - TypeError: 'JavaPackage' object is not callable

VeereshKH
New Contributor II

from synapse.ml.lightgbm import *

LightGBMRegressor()

gives me TypeError: 'JavaPackage' object is not callable


DBR 8.2 (includes Apache Spark 3.1.1, Scala 2.12)

2 REPLIES 2

feiyun0112
Contributor III

You need install Maven package `com.microsoft.azure:synapseml_2.12:1.0.2`

https://microsoft.github.io/SynapseML/docs/Get%20Started/Install%20SynapseML/#databricks 

Kaniz
Community Manager
Community Manager

Hey there! Thanks a bunch for being part of our awesome community! 🎉 

We love having you around and appreciate all your questions. Take a moment to check out the responses – you'll find some great info. Your input is valuable, so pick the best solution for you. And remember, if you ever need more help , we're here for you! 

Keep being awesome! 😊🚀

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.