azureml-examples/cli/responsible-ai
qusongms b0b3ff7151
upgrade tabular env version in rai tabular examples (#3431)
2024-10-29 14:55:23 -04:00
..
cli-responsibleaidashboard-housing-classification
cli-responsibleaidashboard-programmer-regression
datasets
README.md

README.md

Azure Machine Learning Responsible AI Dashboard and Scorecard

Read more about how to generate the Responsible AI (RAI) dashboard here and Responsible AI scorecard here.

The Responsible AI components are supported for MLflow models with scikit-learn flavor that are trained on pandas.DataFrame. The components accept both models and SciKit-Learn pipelines as input as long as the model or pipeline implements predict and predict_proba functions that conforms to the scikit-learn convention. If not compatible, you can wrap your model's prediction function into a wrapper class that transforms the output into the format that is supported (predict and predict_proba of scikit-learn), and pass that wrapper class to modules in this repo.

Sample directory 📖

Scenario Dataset Data type RAI component included Link to sample
Regression Programmers MLTable data Tabular Explanation, Error Analysis, Causal analysis, Counterfactuals cli-responsibleaidashboard-programmer-regression.yml
Binary Classification Kaggle Housing Tabular Explanation, Error Analysis, Causal analysis, Counterfactuals cli-responsibleaidashboard-housing-classification.yml

Supportability 🧰

Currently, we support datasets having numerical and categorical features. The following table provides the scenarios supported for each of the four responsible AI components:

Note: Model overview (performance metrics and fairness disparity metrics) and Data explorer are generated for every Responsible AI dashboard by default and do not require a component to be configured.

RAI component Binary classification Multi-class classification Multilabel classification Regression Timeseries forecasting Categorical features Text features Image Features Recommender Systems Reinforcement Learning
Explainability Yes Yes No Yes No Yes No No No No
Error Analysis Yes Yes No Yes No Yes No No No No
Causal Analysis Yes No No Yes No Yes (max 5 features due to computational cost) No No No No
Counterfactual Yes Yes No Yes No Yes No No No No

Read more about how to use the Responsible AI dashboard here.