SynapseML icon indicating copy to clipboard operation
SynapseML copied to clipboard

LGBMRanker class not present

Open gulshan-gaurav opened this issue 8 years ago • 3 comments

gulshan-gaurav avatar Nov 29 '18 09:11 gulshan-gaurav

@gulshan-gaurav thank you for the feedback - since there currently doesn't exist a ranker in Spark ML, could you give some more details on how you think the API should look like? I've wanted to add this as well but would like to get some feedback from the community in regards to how the API should look like. I'm also not sure what base class I should use from Spark ML or if I should create my own - for example, for LightGBMClassifier we use ProbabilisticClassifier:

https://github.com/apache/spark/blob/v2.4.0/mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala#L53

And for regression I use Regressor:

https://github.com/apache/spark/blob/v2.4.0/mllib/src/main/scala/org/apache/spark/ml/regression/Regressor.scala#L31

For ranking I don't believe there exists any base class currently, so we need to plan out how the API and class hierarchy structure would look like.

imatiach-msft avatar Dec 27 '18 17:12 imatiach-msft

@imatiach-msft

Hi, I suggest the API should be like "Regressor with group_column" .

In particular,

  1. implement trait HasGroupCol like HasFeaturesCol
  2. implement trait RankerParams with HasGroupCol like PredictorParams
  3. implement abstract class Ranker with RankerParams like Regressor

ykicisk avatar Feb 11 '19 06:02 ykicisk

closing as LightGBMRanker has been added with the suggested API

imatiach-msft avatar Jun 04 '19 03:06 imatiach-msft