All Projects → marcotcr → Anchor

marcotcr / Anchor

Licence: bsd-2-clause
Code for "High-Precision Model-Agnostic Explanations" paper

Projects that are alternatives of or similar to Anchor

Amazon Sagemaker Examples
Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
Stars: ✭ 6,346 (+908.9%)
Mutual labels:  jupyter-notebook
Deeplearning Assignment
深度学习笔记
Stars: ✭ 619 (-1.59%)
Mutual labels:  jupyter-notebook
Bamboolib
bamboolib - a GUI for pandas DataFrames
Stars: ✭ 622 (-1.11%)
Mutual labels:  jupyter-notebook
H2o 3
H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
Stars: ✭ 5,656 (+799.21%)
Mutual labels:  jupyter-notebook
Machine Learning Book
《机器学习宝典》包含:谷歌机器学习速成课程(招式)+机器学习术语表(口诀)+机器学习规则(心得)+机器学习中的常识性问题 (内功)。该资源适用于机器学习、深度学习研究人员和爱好者参考!
Stars: ✭ 616 (-2.07%)
Mutual labels:  jupyter-notebook
Kalman
Some Python Implementations of the Kalman Filter
Stars: ✭ 619 (-1.59%)
Mutual labels:  jupyter-notebook
Sigma coding youtube
This is a collection of all the code that can be found on my YouTube channel Sigma Coding.
Stars: ✭ 611 (-2.86%)
Mutual labels:  jupyter-notebook
Kmcuda
Large scale K-means and K-nn implementation on NVIDIA GPU / CUDA
Stars: ✭ 627 (-0.32%)
Mutual labels:  jupyter-notebook
Swift Models
Models and examples built with Swift for TensorFlow
Stars: ✭ 619 (-1.59%)
Mutual labels:  jupyter-notebook
Tutorials
A series of machine learning tutorials for Torch7
Stars: ✭ 621 (-1.27%)
Mutual labels:  jupyter-notebook
Introduction to ml with python
Notebooks and code for the book "Introduction to Machine Learning with Python"
Stars: ✭ 5,843 (+828.93%)
Mutual labels:  jupyter-notebook
Jetracer
An autonomous AI racecar using NVIDIA Jetson Nano
Stars: ✭ 616 (-2.07%)
Mutual labels:  jupyter-notebook
Ebookmlcb
ebook Machine Learning cơ bản
Stars: ✭ 619 (-1.59%)
Mutual labels:  jupyter-notebook
Machinelearning
My blogs and code for machine learning. http://cnblogs.com/pinard
Stars: ✭ 5,984 (+851.35%)
Mutual labels:  jupyter-notebook
Cvnd exercises
Exercise notebooks for CVND.
Stars: ✭ 622 (-1.11%)
Mutual labels:  jupyter-notebook
Early Stopping Pytorch
Early stopping for PyTorch
Stars: ✭ 612 (-2.7%)
Mutual labels:  jupyter-notebook
Ml notes
机器学习算法的公式推导以及numpy实现
Stars: ✭ 618 (-1.75%)
Mutual labels:  jupyter-notebook
Tensorflow Workshop
This repo contains materials for use in a TensorFlow workshop.
Stars: ✭ 628 (-0.16%)
Mutual labels:  jupyter-notebook
David Silver Reinforcement Learning
Notes for the Reinforcement Learning course by David Silver along with implementation of various algorithms.
Stars: ✭ 623 (-0.95%)
Mutual labels:  jupyter-notebook
Mina
Mina is a new cryptocurrency with a constant size blockchain, improving scaling while maintaining decentralization and security.
Stars: ✭ 617 (-1.91%)
Mutual labels:  jupyter-notebook

Anchor

This repository has code for the paper High-Precision Model-Agnostic Explanations.

An anchor explanation is a rule that sufficiently “anchors” the prediction locally – such that changes to the rest of the feature values of the instance do not matter. In other words, for instances on which the anchor holds, the prediction is (almost) always the same.

At the moment, we support explaining individual predictions for text classifiers or classifiers that act on tables (numpy arrays of numerical or categorical data). If there is enough interest, I can include code and examples for images.

The anchor method is able to explain any black box classifier, with two or more classes. All we require is that the classifier implements a function that takes in raw text or a numpy array and outputs a prediction (integer)

Installation

The Anchor package is on pypi. Simply run:

pip install anchor-exp

Or clone the repository and run:

python setup.py install

If you want to use AnchorTextExplainer, you have to run the following:

python -m spacy download en_core_web_lg

And if you want to use BERT to perturb inputs (recommended), also install transformers:

pip install torch transformers spacy && python -m spacy download en_core_web_sm

Examples

See notebooks folder for tutorials. Note that from version 0.0.1.0, it only works on python 3.

Citation

Here is the bibtex if you want to cite this work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].