-
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
R API for Infogram #7430
Comments
Erin LeDell commented: Since the {{h2o.admissibleML()}} function will need to have {{infogram_algorithm}} and {{infogram_algorithm_params}} (to differentiate from the main model training algorithm ({{automl_params}}, etc)), it might make sense to be overly verbose here and change the shorter, nicer {{algorithm}} and {{algorithm_params}} to the more lengthy above versions. The longer version is what’s currently implemented: [https://github.com//pull/5572/files|https://github.com//pull/5572/files|smart-link] |
Erin LeDell commented: Is {{sensitive_columns}} a better name than {{protected_columns}}? |
Wendy commented: Erin: I prefer the threshold parameter to be broken into two parts, one for cmi, one for relevance so that people don’t have to remember the order of which one is for which. |
Erin LeDell commented: Note to self: update the algorithm description in admissible.R to: {noformat}#' The infogram is an information-theoretic graphical tool which allows the user to quickly spot the "core" decision-making variables |
JIRA Issue Details Jira Issue: PUBDEV-8222 |
Linked PRs from JIRA |
{noformat}ig <- h2o.infogram(x, y, training_frame,
protected_columns = NULL,
algorithm = c("gbm", "automl", ...),
algorithm_params = NULL,
thresholds = c(0.1, 0.1), #x, y thresholds
top_n_features = 50,
...){noformat}
Note: You can pass plot arguments to the {{...}} (aes, etc.).
Function returns a {{H2OInfogram}} object, which contains several slots for data, as well as the plots (ggplot object in R and a matplotlib object in Python). This is very similar to the H2O Explain module and the {{H2OExplanation}} class.
The {{ig}} object contains the following slots (note possibly change {{_columns}} to {{_features}}, though {{top_n_features}} is used to denote an integer in H2O Explain):
** x: {{relevance_index}} (aka total information)
** y: {{core_index}} (aka conditional/net information) or {{safety_index}}
Add a plot methods such that to plot the Infogram, you do: {{plot(ig)}} in R.
The text was updated successfully, but these errors were encountered: