-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Expose shapley flag in mojo 2 #15695
Comments
The user already can get the shap contributions from h2o-3 mojo model. You just need to add --predictContributions to the original command you use to invoke H2O-3 mojo. |
can you share an equivalent h2o-3 command - |
In h2o-3, first, use this to generate a mojo: 1. Open a terminal window and start python.2. Run the following commands to build a simple GBM model.The model, along with the h2o-genmodel.jar file willthen be downloaded to an experiment folder.import h2o Download the MOJO and the resulting
|
Next, generate a java class and called it main.java as follows: import java.io.; public class main {
} |
Next, compile the code as follows: javac -cp /Users/wendycwong/h2o-3/h2o-web/src/main/resources/www/3/h2o-genmodel.jar -J-Xms2g main.java then copy over the h2o-genmodel.jar into current directory (~/experiment) cp /Users/wendycwong/h2o-3/h2o-web/src/main/resources/www/3/h2o-genmodel.jar . then run the code to generate in this case both the leaf node assignment and the shapley values: java -cp .:h2o-genmodel.jar main the result looks like this: |
Is this clear for you? @NidhiMehta |
yes thanks Wendy. @sh1ng will reach out if need more info |
Allow user to get shap predictions in from h2o-3 mojo model like we do in driverless(https://docs.h2o.ai/driverless-ai/1-10-lts/docs/userguide/scoring-mojo-scoring-pipeline.html?highlight=shapley%20mojo)
The text was updated successfully, but these errors were encountered: