Responsible AI Toolbox is a suite of tools providing model and data exploration and assessment user interfaces and libraries that enable a better understanding of AI systems. These interfaces and libraries empower developers and stakeholders of AI systems to develop and monitor AI more responsibly, and take better data-driven actions.
Перейти к файлу
Vinutha Karanth 0a4c62cd74
add tests (#1088)
2022-01-05 21:54:16 +00:00
.azure-devops
.eslintrc
.github fix pypi releases by reverting back to pypi token per package (#1113) 2022-01-05 08:23:49 -05:00
.vscode
Localise
apps add tests (#1088) 2022-01-05 21:54:16 +00:00
docs Sorting all python imports using isort (#985) 2021-11-01 19:42:52 +00:00
erroranalysis fix handling numpy types in heatmap for categories (#1097) 2021-12-29 15:29:42 -05:00
img readme changes + filename changes (#1062) 2021-12-06 10:43:04 -05:00
libs add tests (#1088) 2022-01-05 21:54:16 +00:00
notebooks add dnn multiclass example notebook (#1105) 2022-01-04 13:32:59 -05:00
rai_core_flask Add separate github workflow for python linting (#1037) 2021-11-29 22:53:43 +00:00
raiwidgets release raiwidgets and responsibleai 0.16.0 (#1110) 2022-01-04 16:11:11 -05:00
responsibleai release raiwidgets and responsibleai 0.16.0 (#1110) 2022-01-04 16:11:11 -05:00
scripts update notebook tests for new notebooks (#1066) 2021-12-06 20:53:39 -05:00
tools
.editorconfig
.eslintrc.json
.gitignore
.prettierignore
.prettierrc
.yarnrc
CHANGES.md release raiwidgets and responsibleai 0.16.0 (#1110) 2022-01-04 16:11:11 -05:00
CODEOWNERS add romanlutz to CODEOWNERS of raiwidgets (#1100) 2021-12-29 11:49:17 -05:00
CONTRIBUTING.md Add e2e tests steps to CONTRIBUTING.md file (#1107) 2022-01-04 23:00:00 +00:00
LICENSE
README.md Mesameki/readme dashboard (#1067) 2021-12-07 00:07:21 -05:00
RELEASING.md
SECURITY.md
_NOTICE.md update NOTICE file (#1108) 2022-01-04 01:01:22 -05:00
babel.config.json
jest.config.js
jest.preset.js
nx.json
package.json add yarn e2e-watch shortcut (#1103) 2021-12-31 00:44:46 -05:00
requirements-linting.txt Add flake8-breakpoint to avoid code checkin with active breakpoints (#1089) 2021-12-28 02:02:51 +00:00
rollup.config.js
setup.cfg
setupTest.ts
tsconfig.base.json
version.cfg release raiwidgets and responsibleai 0.16.0 (#1110) 2022-01-04 16:11:11 -05:00
webpack.config.js
workspace.json
yarn.lock

README.md

Responsible AI Widgets Python Build CD MIT license PyPI raiwidgets PyPI rai_core_flask npm fairness npm interpret npm mlchartlib npm core-ui npm dataset-explorer npm causality npm counterfactuals

Responsible AI Toolbox

Responsible AI is an approach to assessing, developing, and deploying AI systems in a safe, trustworthy, and ethical manner, and take responsible decisions and actions.

Responsible AI Toolbox is a suite of tools provides a collection of model and data exploration and assessment user interfaces that enable a better understanding of AI systems. These interfaces empower developers and stakeholders of AI systems to develop and monitor AI more responsibly, and take better data-driven actions.

Model Assessment

The Toolbox consists of four dashboards:

  • Error Analysis dashboard, for identifying model errors and discovering cohorts of data for which the model underperforms.
  • Interpretability dashboard, for understanding model predictions. This dashboard is powered by InterpretML.
  • Fairness dashboard, for understanding models fairness issues using various group-fairness metrics across sensitive features and cohorts. This dashboard is powered by Fairlearn.
  • Responsible AI dashboard, a single pane of glass bringing together several mature Responsible AI tools from the toolbox for a holistic responsible assessment and debugging of models and making informed business decisions. With this dashboard, you can identify model errors, diagnose why those errors are happening, and mitigate them. Moreover, the causal decision-making capabilities provide actionable insights to your stakeholders and customers.

Introducing Responsible AI dashboard

Responsible AI dashboard is a single pane of glass, enabling you to easily flow through different stages of model debugging and decision-making. This customizable experience can be taken in a multitude of directions, from analyzing the model or data holistically, to conducting a deep dive or comparison on cohorts of interest, to explaining and perturbing model predictions for individual instances, and to informing users on business decisions and actions.

Model Assessment

In order to achieve these capabilities, the dashboard integrates together ideas and technologies from several open-source toolkits in the areas of

  • Error Analysis powered by Error Analysis, which identifies cohorts of data with higher error rate than the overall benchmark. These discrepancies might occur when the system or model underperforms for specific demographic groups or infrequently observed input conditions in the training data.

  • Model Interpretability powered by InterpretML, which explains blackbox models, helping users understand their model's global behavior, or the reasons behind individual predictions.

  • Counterfactual Analysis powered by DiCE, which shows feature-perturbed versions of the same datapoint who would have received a different prediction outcome, e.g., Taylor's loan has been rejected by the model. But they would have received the loan if their income was higher by $10,000.

  • Causal Analysis powered by EconML, which focuses on answering What If-style questions to apply data-driven decision-making – how would revenue be affected if a corporation pursues a new pricing strategy? Would a new medication improve a patients condition, all else equal?

Responsible AI dashboard is designed to achieve the following goals:

  • To help further accelerate engineering processes in machine learning by enabling practitioners to design customizable workflows and tailor Responsible AI dashboards that best fit with their model assessment and data-driven decision making scenarios.
  • To help model developers create end to end and fluid debugging experiences and navigate seamlessly through error identification and diagnosis by using interactive visualizations that identify errors, inspect the data, generate global and local explanations models, and potentially inspect problematic examples.
  • To help business stakeholders explore causal relationships in the data and take informed decisions in the real world.

This repository contains the Jupyter notebooks with examples to showcase how to use this widget. Get started here.

Responsible AI dashboard Customization

  The Responsible AI Toolboxs strength lies in its customizability. It empowers users to design tailored, end-to-end model debugging and decision-making workflows that address their particular needs. Need some inspiration? Here are some examples of how Toolbox components can be put together to analyze scenarios in different ways:  

Responsible AI Dashboard Flow Use Case
Model Overview -> Error Analysis -> Data Explorer To identify model erros and diagnose them by understanding the underlying data distribution
Model Overview -> Error Analysis -> Counterfactuals Analysis and What-If To diagnose errors in individual instances with counterfactual analysis (minimum change to lead to a different model prediction)
Model Overview -> Data Explorer To understand the root cause of errors and fairness issues introduced via data imbalances or lack of representation of a particular data cohort
Model Overview -> Interpretability To diagnose model errors through understanding how the model has made its predictions
Data Explorer -> Causal Inference To distinguish between correlations and causations in the data or decide the best treatments to apply to see a positive outcome
Interpretability -> Causal Inference To learn whether the factors that model has used for decision making has any causal effect on the real-world outcome.
Data Explorer -> Counterfactuals Analysis and What-If To address customer questions about what they can do next time to get a different outcome from an AI.

Model Debugging Examples:

Responsible Decision Making Examples:

Supported Models

This Responsible AI Toolbox API supports models that are trained on datasets in Python numpy.array, pandas.DataFrame, iml.datatypes.DenseData, or scipy.sparse.csr_matrix format.

The explanation functions of Interpret-Community accept both models and pipelines as input as long as the model or pipeline implements a predict or predict_proba function that conforms to the Scikit convention. If not compatible, you can wrap your model's prediction function into a wrapper function that transforms the output into the format that is supported (predict or predict_proba of Scikit), and pass that wrapper function to your selected interpretability techniques.

If a pipeline script is provided, the explanation function assumes that the running pipeline script returns a prediction. The repository also supports models trained via PyTorch, TensorFlow, and Keras deep learning frameworks.

Other Use Cases

Tools within the Responsible AI Toolbox can also be used with AI models offered as APIs by providers such as Azure Cognitive Services. To see example use cases, see the folders below:

Maintainers