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

fix: lightgbm default params should not be specified if optional #1232

Merged

Conversation

imatiach-msft
Copy link
Contributor

@imatiach-msft imatiach-msft commented Oct 28, 2021

Default params should not be specified if optional.
This PR fixes this issue by only passing the optional parameters to native lightgbm if they are explicitly specified.
Update: I thought this might be the cause of some issues with min_data_in_leaf and min_sum_hessian_in_lead but it doesn't seem to be the case. Regardless this seems like a good change to have, as we can't guarantee that specifying all possible parameters directly to lightgbm will lead to consistent behavior.

@imatiach-msft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@imatiach-msft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2021

Codecov Report

Merging #1232 (c467335) into master (3d92dd7) will decrease coverage by 0.12%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1232      +/-   ##
==========================================
- Coverage   83.69%   83.57%   -0.13%     
==========================================
  Files         264      264              
  Lines       12911    12919       +8     
  Branches      637      634       -3     
==========================================
- Hits        10806    10797       -9     
- Misses       2105     2122      +17     
Impacted Files Coverage Δ
...crosoft/azure/synapse/ml/lightgbm/TrainUtils.scala 85.98% <40.00%> (ø)
...azure/synapse/ml/lightgbm/LightGBMClassifier.scala 91.11% <100.00%> (ø)
...oft/azure/synapse/ml/lightgbm/LightGBMRanker.scala 64.17% <100.00%> (ø)
.../azure/synapse/ml/lightgbm/LightGBMRegressor.scala 74.13% <100.00%> (+1.41%) ⬆️
...azure/synapse/ml/lightgbm/params/TrainParams.scala 100.00% <100.00%> (ø)
...re/synapse/ml/lightgbm/params/LightGBMParams.scala 83.78% <0.00%> (-6.57%) ⬇️

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 3d92dd7...c467335. Read the comment docs.

@imatiach-msft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@imatiach-msft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mhamilton723 mhamilton723 merged commit 336eff5 into microsoft:master Oct 28, 2021
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.

None yet

3 participants