SynapseML icon indicating copy to clipboard operation
SynapseML copied to clipboard

Which option to chose to set parameters to LightGBMClassifier()?

Open Nitinsiwach opened this issue 2 years ago • 2 comments

There are three ways to set pameters to a LightGBMClassifier()

  1. In the class constructor itself
  2. Using the params argument in the fit method
  3. Using the setParams method available to LightGBMClassifier()

I can see why we have to endow the classifier with a setParams method but, can you please explain why we also have params argument available in the fit method.

Any use-case I can think of turns out to be a use-case that we need setParams for. So, why params? When should I choose it over setParams?

AB#1884830

Nitinsiwach avatar Jan 22 '22 09:01 Nitinsiwach

@Nitinsiwach I believe all of these options are on the standard spark ml learners as well. You would normally set in the constructor, but these other methods are available so it can integrate with the spark ml ecosystem. Hope that helps resolve the question.

imatiach-msft avatar Jan 25 '22 03:01 imatiach-msft

@Nitinsiwach -- if you are satisfied with the response, can we close the issue ?

ppruthi avatar Jul 19 '22 00:07 ppruthi