Explaining the decisions and behaviour of machine learning models.
You can find the current version of the book here: https://christophm.github.io/interpretable-ml-book/
This book is about interpretable machine learning. Machine learning is being built into many products and processes of our daily lives, yet decisions made by machines don't automatically come with an explanation. An explanation increases the trust in the decision and in the machine learning model. As the programmer of an algorithm you want to know whether you can trust the learned model. Did it learn generalizable features? Or are there some odd artifacts in the training data which the algorithm picked up? This book will give an overview over techniques that can be used to make black boxes as transparent as possible and explain decisions. In the first chapter algorithms that produce simple, interpretable models are introduced together with instructions how to interpret the output. The later chapters focus on analyzing complex models and their decisions. In an ideal future, machines will be able to explain their decisions and make a transition into an algorithmic age more human. This books is recommended for machine learning practitioners, data scientists, statisticians and also for stakeholders deciding on the use of machine learning and intelligent algorithms.
The book is automatically build from the master branch and pushed to gh-pages by Travis CI.
Clone the repository.
git clone firstname.lastname@example.org:christophM/interpretable-ml-book.git
Make sure all dependencies for the book are installed. This book has the structure of an R package, so dependencies can be installed easily, only R and the devtools library is required. Start an R session in the folder of the book repository and type:
For rendering the book, start an R session and type:
setwd("manuscript") # first, generate the references source("../scripts/references.R") bookdown::render_book('.', 'bookdown::gitbook')
After rendering, the HTML files of the book will be in the "_book" folder. You can either double-click index.html directly or, of course, do it in R:
Stuff that both works for leanpub and for bookdown:
[text of the link](#tag-of-the-title)
[text of the link](#fig:tag-of-r-chunk-that-produced-figure)
$(inline) or with
$$(extra line). Will be automatically changed for leanpub with a regexpr. Conversion script only works if no empty spaces are in the formula.
[^ref-tag]and must be at the end of the respective file with
[^ref]: Details of the reference .... Make sure the space is included. References are collected in 10-reference.Rmd with the script references.R. Make sure not to use
[^ref-tag]:anywhere in the text, only at the bottom for the actual reference.
Printing for proofreading with extra line spacing: Build HTML book, go to manuscript/_book/libs/gitbook*/css/style.css, change line-height:1.7 to line-height:2.5, open local html with chrome, print to pdf with custom margin.
All notable changes to the book will be documented here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.