Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LGBMRanker #173

Merged
merged 3 commits into from
Jun 29, 2020
Merged

add LGBMRanker #173

merged 3 commits into from
Jun 29, 2020

Conversation

ksaur
Copy link
Collaborator

@ksaur ksaur commented Jun 27, 2020

Adding LGBMRanker for Issue #172

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2020

Codecov Report

Merging #173 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #173   +/-   ##
=======================================
  Coverage   93.57%   93.57%           
=======================================
  Files          25       25           
  Lines        1572     1573    +1     
  Branches      290      290           
=======================================
+ Hits         1471     1472    +1     
  Misses         60       60           
  Partials       41       41           
Flag Coverage Δ
#unittests 93.57% <100.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
hummingbird/ml/operator_converters/lightgbm.py 100.00% <100.00%> (ø)
hummingbird/ml/supported.py 92.18% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b5e8f5...94de276. Read the comment docs.

@ksaur ksaur linked an issue Jun 27, 2020 that may be closed by this pull request
@ksaur ksaur requested a review from interesaaat June 27, 2020 00:35
@interesaaat
Copy link
Collaborator

This was quick!

# Ranker
@unittest.skipIf(not lightgbm_installed(), reason="LightGBM test requires LightGBM installed")
def test_lgbm_binary_ranker_converter(self):
# Using 30 rather than 1000 to avoid "label (31) excel the max range" error
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this? Any idea?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the instructions to set label_gain without luck microsoft/LightGBM#1090

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try again Monday! Maybe there is something minor I was missing

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok let's leave this test as is. Can you add one more with label_gain once you figure it out? I will then merge it!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

figured out label_gain=list(range(1000)). should be ok now i think

@ksaur ksaur changed the title Ksaur/issue 172 add LGBMRanker Jun 27, 2020
@ksaur ksaur mentioned this pull request Jun 29, 2020
@interesaaat interesaaat merged commit 40d8cc9 into master Jun 29, 2020
@ksaur ksaur deleted the ksaur/issue-172 branch July 8, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for LGBMRanker?
3 participants