Leanpub Header

Skip to main content

Introduction To Conformal Prediction With Python

A Short Guide For Quantifying Uncertainty Of Machine Learning Models

This book teaches you how to quantify the uncertainty of machine learning models with conformal prediction in Python.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
About

About

About the Book

Introduction To Conformal Prediction With Python is the quickest way to learn an easy-to-use and very general technique for uncertainty quantification.

"This concise book is accessible, lucid, and full of helpful code snippets. It explains the mathematical ideas with clarity and provides the reader with practical examples that illustrate the essence of conformal prediction, a powerful idea for uncertainty quantification."

– Junaid Butt, Research Software Engineer, IBM Research

Modern statistics can be a difficult topic, but Christoph has managed to make it feel easy, practical, and fun! Reading this book is a great first step towards gaining mastery of conformal prediction and related topics.

– Anastasios Angelopoulos, Researcher at the University of California, Berkeley

Summary

A prerequisite for trust in machine learning is uncertainty quantification.  Without it, an accurate prediction and a wild guess look the same.

Yet many machine learning models come without uncertainty quantification. And while there are many approaches to uncertainty – from Bayesian posteriors to bootstrapping – we have no guarantees that these approaches will perform well on new data.

I really enjoyed reading the book. The data science and machine learning community needs more people like Christoph Molnar who are able to translate emerging breakthrough research into digestible concepts. I can see this book becoming a key piece in accelerating the rate of adoption of conformal ML.

– Guilherme Del Nero Maia, Principal Data Science at Jabil

At first glance conformal prediction seems like yet another contender. But conformal prediction can work in combination with any other uncertainty approach and has many advantages that make it stand out:

  • Guaranteed coverage: Prediction regions generated by conformal prediction come with coverage guarantees of the true outcome
  • Easy to use: Conformal prediction approaches can be implemented from scratch with just a few lines of code
  • Model-agnostic: Conformal prediction works with any machine learning model
  • Distribution-free: Conformal prediction makes no distributional assumptions
  • No retraining required: Conformal prediction can be used without retraining the model
  • Broad application: conformal prediction works for classification, regression, time series forecasting, and many other tasks

Sound good? 

Then this is the right book for you to learn about this versatile, easy-to-use yet powerful tool for taming the uncertainty of your models.

This book:

  • Teaches the intuition behind conformal prediction
  • Demonstrates how conformal prediction works for classification and regression
  • Shows how to apply conformal prediction using Python and MAPIE
  • Enables you to quickly learn new conformal algorithms

Note: Please be aware that the ePub version utilizes MathML for mathematical notations and may not be compatible with all eReaders. Leanpub has a 60-day "100% Happiness Guarantee", so don't hesitate to just try it out. And you'll also get the PDF where the equations look good.

With the knowledge in this book, you'll be ready to quantify the uncertainty of any model.

This book is a comprehensive guide and resource for anyone who wants to learn how to quantify uncertainty with conformal prediction by using python. Christoph's writing is clear and engaging. He provides practical examples that help readers understand how to apply conformal prediction techniques/concepts to real-world problems.

– Tony Zhang, Data Scientist at Munich Re

Share this book

Price

Pick Your Price...

Minimum price

$19.00

$25.00

You pay

$25.00

Author earns

$20.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Christoph Molnar

On a mission to make algorithms more interpretable by combining machine learning and statistics.

Leanpub Podcast

Episode 120

An Interview with Christoph Molnar

Contents

Table of Contents

  • Introduction to Conformal Prediction
  • Getting Started with Conformal Prediction in Python
  • Intuition Behind Conformal Prediction
  • Classification
  • Regression and Quantile Regression
  • A Glimpse Beyond Classification and Regression
  • Design Your Own Conformal Predictor
  • Q & A

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub