-
Notifications
You must be signed in to change notification settings - Fork 831
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
feat: add matrix type parameter and improve auto logic #1052
feat: add matrix type parameter and improve auto logic #1052
Conversation
imatiach-msft
commented
May 17, 2021
- add matrix type parameter to specify whether matrix is sparse, dense, or auto inferred
- allow user to override default auto logic to specify whether sparse or dense matrix must be constructed in lightgbm native code
- improve autologic to use first 10 sampled rows instead of just the head row when trying to determine whether constructed matrix should be sparse or dense
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
eeab0b2
to
5beeffe
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #1052 +/- ##
==========================================
+ Coverage 84.93% 84.96% +0.02%
==========================================
Files 203 203
Lines 9677 9689 +12
Branches 588 558 -30
==========================================
+ Hits 8219 8232 +13
+ Misses 1458 1457 -1
Continue to review full report at Codecov.
|
5beeffe
to
8a115f3
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
8a115f3
to
8cd8007
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -320,12 +320,15 @@ class VerifyLightGBMClassifier extends Benchmarks with EstimatorFuzzing[LightGBM | |||
test("Verify LightGBM Classifier with dart mode parameters") { | |||
// Assert the dart parameters work without failing and setting them to tuned values improves performance | |||
val Array(train, test) = pimaDF.randomSplit(Array(0.8, 0.2), seed) | |||
val scoredDF1 = baseModel.setBoostingType("dart").fit(train).transform(test) | |||
val scoredDF1 = baseModel.setBoostingType("dart"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this is just fixing a flaky test in the build, unrelated to this PR
src/main/scala/com/microsoft/ml/spark/lightgbm/TrainUtils.scala
Outdated
Show resolved
Hide resolved
8cd8007
to
912b6e8
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |