-
Notifications
You must be signed in to change notification settings - Fork 834
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: new LIME and KernelSHAP explainers #1077
Conversation
/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). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #1077 +/- ##
==========================================
+ Coverage 84.34% 85.50% +1.15%
==========================================
Files 208 232 +24
Lines 9789 10484 +695
Branches 565 601 +36
==========================================
+ Hits 8257 8964 +707
+ Misses 1532 1520 -12
Continue to review full report at Codecov.
|
protected lazy val pyParamsDefinitions: String = { | ||
this.params.map { p => | ||
val typeConverterString = getParamInfo(p).pyTypeConverter.map(", typeConverter=" + _).getOrElse("") | ||
s"""|${p.name} = Param(Params._dummy(), "${p.name}", "${p.doc}"$typeConverterString) | ||
s"""|${p.name} = Param(Params._dummy(), "${p.name}", "${escape(p.doc)}"$typeConverterString) |
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.
TY!
counter += 1 | ||
} | ||
unusedColumnName | ||
val stream = Iterator(prefix) ++ Iterator.from(1, 1).map(prefix + "_" + _) |
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.
😎
/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). |
/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). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
… randomness in explanation after deserialization.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -6,10 +6,13 @@ package com.microsoft.ml.spark.core.utils | |||
import org.apache.spark.sql.Row | |||
import org.apache.spark.sql.catalyst.expressions.GenericRow | |||
|
|||
// This class currently has no usage. Should we just remove it? | |||
@deprecated("This is a copy of Row.merge function from Spark, which was marked deprecated.", "1.0.0-rc3") |
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.
yes we can remove
In this PR, we rewrote the LIME explainers and added KernelSHAP explainers in the
com.microsoft.ml.spark.explainers
package.New features:
If one is not given, the dataframe used for local interpretation will be used as background data.Sample notebooks will be included in the next PR.