{"id":23892,"library":"interpret-community","title":"Interpret Community","description":"Microsoft Interpret Extensions SDK for Python – provides a unified API for model interpretability including SHAP, LIME, and surrogate explainers. Current version: 0.32.0. Release cadence: irregular, ~2-4 per year.","status":"active","version":"0.32.0","language":"python","source_language":"en","source_url":"https://github.com/interpretml/interpret-community","tags":["interpretability","explainability","SHAP","LIME","machine-learning"],"install":[{"cmd":"pip install interpret-community","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Required for core interpretation logic","package":"interpret-core","optional":false},{"reason":"Used for SHAP-based explainers","package":"shap","optional":true},{"reason":"Wrapper models for scikit-learn, etc.","package":"ml-wrappers","optional":true},{"reason":"Data input/output handling","package":"pandas","optional":false}],"imports":[{"note":"Old import path without 'ext' - missing subpackage","wrong":"from interpret.blackbox import TabularExplainer","symbol":"TabularExplainer","correct":"from interpret.ext.blackbox import TabularExplainer"},{"note":"MimicExplainer lives in interpret.ext.blackbox, not interpret.community","wrong":"from interpret.community import MimicExplainer","symbol":"MimicExplainer","correct":"from interpret.ext.blackbox import MimicExplainer"}],"quickstart":{"code":"import pandas as pd\nfrom sklearn.datasets import load_iris\nfrom sklearn.ensemble import RandomForestClassifier\nfrom interpret.ext.blackbox import TabularExplainer\n\niris = load_iris()\nX = pd.DataFrame(iris.data, columns=iris.feature_names)\ny = iris.target\nmodel = RandomForestClassifier().fit(X, y)\nexplainer = TabularExplainer(model, X, features=iris.feature_names)\nglobal_explanation = explainer.explain_global()\nprint(global_explanation.feature_importance())","lang":"python","description":"Basic usage: train a model, create a TabularExplainer, and get global feature importance."},"warnings":[{"fix":"Use Python 3.7 or higher.","message":"In v0.29.0, Python 3.6 support was dropped. Upgrade to Python 3.7+.","severity":"breaking","affected_versions":">=0.29.0"},{"fix":"Use get_surrogate_model_replication_measure() instead of _get_surrogate_model_replication_measure().","message":"In v0.25.0, the function _get_surrogate_model_replication_measure() was made public as get_surrogate_model_replication_measure(). Private underscore prefix removed.","severity":"breaking","affected_versions":">=0.25.0"},{"fix":"Use 'from interpret.ext.blackbox import ...'.","message":"The old import path from interpret.blackbox is deprecated. Use interpret.ext.blackbox instead.","severity":"deprecated","affected_versions":">=0.30.0"},{"fix":"Wrap input data in a pandas DataFrame with column names when using TabularExplainer.","message":"Passing numpy arrays without feature names may cause errors in explainers that expect pandas DataFrames.","severity":"gotcha","affected_versions":"all"},{"fix":"Instantiate the surrogate model first: from sklearn.tree import DecisionTreeRegressor; MimicExplainer(..., augment_data=True, surrogate_model=DecisionTreeRegressor()).","message":"When using MimicExplainer, the surrogate model (e.g., DecisionTree) must be passed as a model object, not a string.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'-4':29 '0.32.0':24 '2':28 'api':12 'cadenc':26 'communiti':2 'current':22 'explain':21,33 'extens':5 'includ':16 'interpret':1,4,15,32 'irregular':27 'learn':38 'lime':18,35 'machin':37 'machine-learn':36 'microsoft':3 'model':14 'per':30 'provid':9 'python':8 'releas':25 'sdk':6 'shap':17,34 'surrog':20 'unifi':11 'version':23 'year':31","created_at":"2026-05-01T08:10:11.022266+00:00","updated_at":"2026-05-01T08:10:11.022266+00:00","problems":{"verify_error":"× Failed to build `numba==0.53.1`\n  ├─▶ The build backend returned an error\n  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit\n      status: 1)\n\n      [stderr]\n      Traceback (most recent call last):\n        File \"<string>\", line 14, in <module>\n        File\n      \"/home/xor/"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.32.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/interpretml/interpret-community","docs":null,"changelog":null,"pypi":"https://pypi.org/project/interpret-community/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}