Skip to content

Instantly share code, notes, and snippets.

@mkaranasou
Created March 20, 2021 10:59
Show Gist options
  • Save mkaranasou/08622534aac4703356c135ad261d3dc8 to your computer and use it in GitHub Desktop.
Save mkaranasou/08622534aac4703356c135ad261d3dc8 to your computer and use it in GitHub Desktop.
Output for the calculation of each z's marginal contibution
+----+-------------------------------------++-------------+---------------------+
|id |features |prediction |marginal_contribution|
+----+-------------------------------------+--------------+---------------------+
|1677|[0.349,0.141,0.162,0.162,0.162,0.349]|0.0 |null |
|1677|[0.886,0.141,0.162,0.162,0.162,0.349]|0.0 |0.0 |
|2250|[0.106,0.423,0.777,0.777,0.777,0.886]|0.0 |null |
|2250|[0.886,0.423,0.777,0.777,0.777,0.886]|0.0 |0.0 |
|2453|[0.801,0.423,0.777,0.777,0.87,0.886] |0.0 |null |
+----+-------------------------------------+--------------+---------------------+
only showing top 5 rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment