-
Notifications
You must be signed in to change notification settings - Fork 827
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 predict_disable_shape_check in LightGBM #1273
feat: add predict_disable_shape_check in LightGBM #1273
Conversation
/azp run |
Commenter does not have sufficient privileges for PR 1273 in repo microsoft/SynapseML |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #1273 +/- ##
==========================================
+ Coverage 83.13% 83.16% +0.02%
==========================================
Files 300 300
Lines 13699 13709 +10
Branches 660 656 -4
==========================================
+ Hits 11389 11401 +12
+ Misses 2310 2308 -2
Continue to review full report at Codecov.
|
@mhamilton723 |
com.microsoft.azure.synapse.ml.lightgbm.split1.VerifyLightGBMClassifier com.microsoft.azure.synapse.ml.lightgbm.split2.VerifyLightGBMRanker @nhymxu thanks for your patience during the holidays These test suites are failing. Not sure why though as there is no stacktrace. Perhaps run this test locally to debug. This is the stack trace on the latter two |
@mhamilton723 @nhymxu I think that error above is a red herring, the real error is: [info] No tests to run for Test / testOnly it looks like jsonEncode doesn't work for the new boolean parameter. |
this error was just an assertion in a negative test case and not an actual error in the test suite: |
@@ -257,6 +257,14 @@ trait LightGBMPredictionParams extends Wrappable { | |||
|
|||
def getFeaturesShapCol: String = $(featuresShapCol) | |||
def setFeaturesShapCol(value: String): this.type = set(featuresShapCol, value) | |||
|
|||
val predictDisableShapeCheck = new Param[Boolean](this, "predictDisableShapeCheck", |
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.
instead of Param[Boolean] you need to use BooleanParam here
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.
@imatiach-msft
I changed to BooleanParam
. Please help re-run test again.
Thank you
@nhymxu I think I figured out the issue causing tests to fail. Here:
you need to use BooleanParam instead of Param[Boolean]. |
val testModel = LightGBMClassificationModel.loadNativeModelFromString(oldModelString) | ||
testModel.setPredictDisableShapeCheck(true) | ||
|
||
assert(testModel.transform(testDF).collect().length > 0) |
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.
nice test!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
looks like on cognitive services python test failed: [error] (run-main-8) java.util.NoSuchElementException: None.get let me requeue the build and retry, I'm guessing it's some transient failure |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Ya, look like all things done. Thank you for your support in my first PR here. Should I squash and rebase with |
THank you @imatiach-msft and @nhymxu |
@mhamilton723 is it possible to use a snapshot of this version? |
@chickenfingerwu |
Resolve #957
Resolve #1159