Git Product home page Git Product logo

interpretable-ai-book's Introduction

Interpretable AI - Building Explainable Machine Learning Systems

This repository contains Jupyter notebooks implementing the code samples found in the book Interpretable AI - Building Explainable Machine Learning Systems (Manning Publications). The book features far more content than you will find in these notebooks.

Setup

Conda Environment

These notebooks use Python 3.7, scikit-learn 0.21.3 and PyTorch 1.4.0. You can install conda on your operating system by following the instructions on the Conda website. Once installed, you can create the conda environment from the environment.yml file as follows.

$> conda env create -f packages/environment.yml

The environment name is interpretable-ai and it can be activated as follows.

$> conda activate interpretable-ai

You are now ready to run all the code in the book on Jupyter. From the repository directory downloaded on your machine, you can run the following command to start the Jupyter web application.

$> jupyter notebook

Docker

There are limitations with the Conda package/environment managed system. It sometimes does not work as expected across multiple operating systems, different versions of the same operating system or different hardware. If you do encounter issues while creating the conda environment detailed in the previous section, you can instead use Docker. Docker can be installed on your operating system by following the instructions on the Docker website. Once installed, you can then build the Docker image from command line by running the following command from the repository directory downloaded on your machine.

$> docker build . -t interpretable-ai

Note that the interpretable-ai tag is used for the Docker image. If the above command runs successfully, Docker should print the identifier of the image that was built. You can also view the details of the built image by running the following command.

$> docker images

Run the following command to run the Docker container using the built image and start the Jupyter web application.

$> docker run -p 8888:8888 interpretable-ai:latest

Table of Contents

interpretable-ai-book's People

Contributors

thampiman 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.