Package: intel-xai
Intel® Explainable AI ToolsThis repository provides tools for data scientists and MLOps engineers that have requirements specific to AI model interpretability.OverviewThe Intel Explainable AI Tools are designed to help users detect and mitigate against issues of fairness and interpretability, while running best on Intel hardware.
There are two Python* components in the repository:Model Card GeneratorCreates interactive HTML reports containing model performance and fairness metricsExplainerRuns post-hoc model distillation and visualization methods to examine predictive behavior for both TensorFlow* and PyTorch* models via a simple Python API including the following modules:Attributions: Visualize negative and positive attributions of tabular features, pixels, and word tokens for predictionsCAM (Class Activation Mapping): Create heatmaps for CNN image classifications using gradient-weight class activation CAM mappingMetrics: Gain insight into models with the measurements and visualizations needed during the machine learning workflowGet StartedRequirementsLinux system or WSL2 on Windows (validated on Ubuntu* 20.04/22.04 LTS)Python 3.8, 3.9, 3.10Install required OS packages withapt-get install build-essential python3-devgit (only required for the "Developer Installation")Create and activate a Python3 virtual environmentWe encourage you to use a python virtual environment (virtualenv or conda) for consistent package management.
There are two ways to do this:a. Usingvirtualenv:python3.9 -m virtualenv xai_env
source xai_env/bin/activateb. Orconda:conda create --name xai_env python=3.9
conda activate xai_envBasic Installationpip install intel-xaiDeveloper InstallationUse these instructions to install the Intel Explainable AI Tools with a clone of the
GitHub repository. This can be done instead of the basic pip install, if you plan
on making code changes.Clone this repo and navigate to the repo directory:git clone https://github.com/IntelAI/intel-xai-tools.git

cd intel-xai-toolsInstall the Intel Explainable AI Tools using the following command:make installAdditional Feature-Specific StepsNotebooks may require additional dependencies listed in their associated documentation.Verify InstallationVerify that your installation was successful by using the following commands, which display the Explainer and Model Card Generator versions:python -c "from explainer import version; print(version.__version__)"
python -c "from model_card_gen import version; print(version.__version__)"Running NotebooksThe following links have Jupyter* notebooks showing how to use the Explainer and Model Card Generator APIs in various ML domains and use cases:Model Card Generator NotebooksExplainer NotebooksSupportThe Intel Explainable AI Tools team tracks bugs and enhancement requests usingGitHub issues. Before submitting a
suggestion or bug report, search the existing GitHub issues to see if your issue has already been reported.*Other names and brands may be claimed as the property of others.TrademarksDISCLAIMERThese scripts are not intended for benchmarking Intel platforms. For any performance and/or benchmarking information on specific Intel platforms, visithttps://www.intel.ai/blog.Intel is committed to the respect of human rights and avoiding complicity in human rights abuses, a policy reflected in the Intel Global Human Rights Principles. Accordingly, by accessing the Intel material on this platform you agree that you will not use the material in a product or application that causes or contributes to a violation of an internationally recognized human right.LicenseIntel® Explainable AI Tools is licensed under Apache License Version 2.0.Datasets and ModelsTo the extent that any data, datasets, or models are referenced by Intel or accessed using tools or code on this site such data, datasets and models are provided by the third party indicated as the source of such content. Intel does not create the data, datasets, or models, provide a license to any third-party data, datasets, or models referenced, and does not warrant their accuracy or quality. By accessing such data, dataset(s) or model(s) you agree to the terms associated with that content and that your use complies with the applicable license.DATASETSIntel expressly disclaims the accuracy, adequacy, or completeness of any data, datasets or models, and is not liable for any errors, omissions, or defects in such content, or for any reliance thereon. Intel also expressly disclaims any warranty of non-infringement with respect to such data, dataset(s), or model(s). Intel is not liable for any liability or damages relating to your use of such data, datasets, or models.