Coder Social home page Coder Social logo

mfi's Introduction

This repository contains the code to the paper entitled Feature Importance Measure for Non-linear Learning Algorithms

MFI - Measure of Feature Importance.

MFI is an algorithm that was developed to explain arbitrary classifiers in two ways:

  1. model-based explanation: what has the classifier learned in total?

  2. instance-based explanation: Given a specific data point (instance), which are the important features of this data point that drive the classifier prediction?

Installation

Download or clone:

https://github.com/mcvidomi/MFI.git

Demo

run demo.py. It will take about 1 min.

USPS (United States Postal Service - handwritten digits) dataset will be downloaded in data/usps.

An SVM with an RBF kernel is trained on the data. Afterwards MFI is computed for the instance-based explanation (exemplarly 4 digits were chosen) and for the model-based explanation.

Results

Instance-based results

The first row shows the raw digits. The second row shows the shape of the digits over the MFI results, respectively. On the top of the image the prediction score of the classifier is plotted - <0: decide for '3' and >0: decide for '8'. alt tag

Model-based results

The result heat map shows the important pixel for the classifier to decide for a '3' instead of an '8'. alt tag

mfi's People

Contributors

gillesvandewiele avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.