LGBMRanker class not present
@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
Hi, I suggest the API should be like "Regressor with group_column" .
In particular,
- implement trait
HasGroupCollike HasFeaturesCol - implement trait
RankerParamswithHasGroupCollike PredictorParams - implement abstract class
RankerwithRankerParamslike Regressor
closing as LightGBMRanker has been added with the suggested API