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)

feiyun0112
Honored Contributor

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