Learn explainable AI tools and techniques to process trustworthy AI results
Understand how to detect, handle, and avoid common issues with AI ethics and bias
Integrate fair AI into popular apps and reporting tools to deliver business value using Python and associated tools
Description
Effectively translating AI insights to business stakeholders requires careful planning, design, and visualization choices. Describing the problem, the model, and the relationships among variables and their findings are often subtle, surprising, and technically complex.
Hands-On Explainable AI (XAI) with Python will see you work with specific hands-on machine learning Python projects that are strategically arranged to enhance your grasp on AI results analysis. You will be building models, interpreting results with visualizations, and integrating XAI reporting tools and different applications.
You will build XAI solutions in Python, TensorFlow 2, Google Cloud’s XAI platform, Google Colaboratory, and other frameworks to open up the black box of machine learning models. The book will introduce you to several open-source XAI tools for Python that can be used throughout the machine learning project life cycle.
You will learn how to explore machine learning model results, review key influencing variables and variable relationships, detect and handle bias and ethics issues, and integrate predictions using Python along with supporting the visualization of machine learning models into user explainable interfaces.
By the end of this AI book, you will possess an in-depth understanding of the core concepts of XAI.
Who is this book for?
This book is not an introduction to Python programming or machine learning concepts. You must have some foundational knowledge and/or experience with machine learning libraries such as scikit-learn to make the most out of this book.
Some of the potential readers of this book include:
Professionals who already use Python for as data science, machine learning, research, and analysis
Data analysts and data scientists who want an introduction into explainable AI tools and techniques
AI Project managers who must face the contractual and legal obligations of AI Explainability for the acceptance phase of their applications
What you will learn
Plan for XAI through the different stages of the machine learning life cycle
Estimate the strengths and weaknesses of popular open-source XAI applications
Examine how to detect and handle bias issues in machine learning data
Review ethics considerations and tools to address common problems in machine learning data
Share XAI design and visualization best practices
Integrate explainable AI results using Python models
Use XAI toolkits for Python in machine learning life cycles to solve business problems
This book is an excellent learning source for Explainable AI (XAI) by covering different machine learning explanation types like why-explanations, counterfactual-explanations, and contrastive-explanations.Especially, the structure of the book is very useful by covering some mathematical foundations of the problems/solutions as well as the step-by-step implementation of each technique with python libraries.Examples and tools are designed to cover essential areas that explanations could benefit AI-based systems.The book starts introducing XAI as a potential solution in safety-critical applications of AI like medical diagnosis, self-driving cars, autopilot systems.After introducing the Google Facet visualization tool, the author presents an analysis of training data with it from ethical and legal perspectives.As for the interpretability techniques, the book covers multiple model agnostic techniques, including SHAP, LIME, Anchors, and Google's What-if tool that can generate interpretations from any black-box model.The author provides examples from different data domains like images, text, and tabular data in each chapter.I strongly suggest this book to those who are eager to learn about the broad spectrum of XAI and how it can be used to build a more accountable AI.
Amazon Verified review
sieboAug 24, 2020
5
As en engineer working in the healthcare sector, the ethics of AI are extremely important to me. AI that is used to drive decisions that affect people's health and well-being should be as transparent as possible. Denis gives an excellent view into this emergent sub-field of AI. He conveys a very well-informed perspective about the need for XAI and the ethical topics involved. The example problems provide a tangible basis for exploring the ethical considerations as well as the technical approach and tooling selection. The example implementations are explained in detail, with no corners cut. Having also read and enjoyed Denis' "AI by Example" book, I was looking forward to this book. His writing style is superb, and he adroitly moves between technical, ethical, and business topics. He manages to take an emergent field and write about it in a way that gives his readers a nuanced and holistic view along with the technical background to work productively on real-world applications.
Amazon Verified review
Matthew EmerickAug 17, 2020
5
About This BookThis is a book I've been waiting for for a few years. Explainable AI (XAI) is the next step in artificial intelligence theory and practice. In this book, Denis Rothman explores the currently available technologies of XAI and discusses the theory behind it as well as the legal hurdles they will help us cross. The technologies range from straight Python to various offerings from Microsoft and Google.Who is This For?The preface gives a wide range of potential readers, but I think the author pulls this off. You can easily read the theory without getting bogged down by the code, or you could work through the examples and have a good basic knowledge to apply the theory to your next project.Why Was This Written?Explainable AI is still a very new subfield of AI and there are very few texts written about it. Rothman came through at just the right time with this book. AI cannot progress much further if it continues to be a black box.OrganizationThere is no overall organization to this book, but this is a fairly new field, so that's understandable. There is a nice flow that makes sure that a new topic is introduced cleanly before being used to extend another technique.The microstructure is well suited for this type of book. Each chapter has a summary, questions, references, and further reading. Given the amount of theory in this book, the questions (largely true or false) are a useful aid in recall. The further reading section is very welcome to extend the reader's knowledge even deeper.Did This Book Succeed?I can easily say that, yes, the author reached his stated goals. This is a book that any serious AI theorist or practitioner should have in their library. Any student of AI should read through this book and practice the exercises to be relevant in the field. I hope to add a physical copy of this book to my library in the near future.Rating and Final ThoughtsThis is the book the Denis Rothman needed to write. I was very critical about his last book, but knew that he had a lot of knowledge and understanding to contribute to the field. I am very pleased to say that this is it. Rothman pushes our understanding of AI forward, in more ways than one.I am happy to give this book a 5 out of 5 and look forward to Rothman's next book.
Amazon Verified review
michael mejiaSep 13, 2020
5
As many who work or just do projects about machine learning or data science, there are many libraries/Algorithms which are very easy to use. You put your data in one side and you receive the results from the other. We all understand those results and maybe a few easier supervised learning models, but there comes a point where not knowing exactly what is going on in these black boxes can make it hard to explain to interested individuals and even harder to convince say your boss, on a particular model to implement where money and time is valuable. This book goes into further detail with examples and storylines which are extremely lacking in other machine learning literature out there. The examples in this book are closer to real world applications and some examples have been utilized in the real world. This book on its own does a very well job in what it does and the explanations given are clearly from someone with academic and "REAL WORLD" experience as many times examples given in other literature are more academic in nature and difficult to make a connection on where to utilize in a project.
Amazon Verified review
Duubar VillalobosSep 18, 2020
5
Main Topic: Storytelling.Other Main Topics:Expert insight, AI, XAI, Python, Interpretation, Visualization, Explanation, and Integration of reliable AI for fair, secure, and trustworthy secure AI apps.Moral limits, Ethics, Bias, Autopilot, Life & Death, Law, Machine learning perspective.Training, Evaluation, and Saving/Logging the models.KNN, Decision trees, Accuracy measurements, Simulations, Noise.Feature statistics, Sentiment Analysis, Logistic regression, Architecture, Deep learning, Defining Cognitive, etc.Review:Hands on Explainable AI with Python helps to accurately interpret and communicate trustworthy AI findings, by explaining the results that deliver business value. The author also makes critical observations that help to avoid common issues with AI bias, ethics, and its governing laws. The book also offers several --low to no cost-- open-source AI tools for Python practitioners, that can be used throughout the machine learning project lifecycle.This book will definitely be of great help for those seeking to explain the contractual and legal obligations of AI explainability for the acceptance phase of their applications. Also, those interested in the future of artificial intelligence --as a tool that can be explained, and understood; will find great guidance.This book offers a great source of wisdom for those seeking to learn how to eradicate bias and build an ethical ML system in Python, Chapter 5 provides the steps needed to take action by taking the moral, legal, and ethical parameters into account from the very beginning. This is helpful since many times we don't take into consideration such aspects.The author offers great detail of attention, propper mathematical, and technical definitions making it easy to follow and understand.Cons: The book --as described in the title, focuses on Python programming only. In my case I am an R, Python, etc package user/programmer; so it does not make much of a difference to me. For some non-Python programmers, it might become nuanced, but that’s the beauty of reading, learning, and writing. The book requires previous mathematical and technical knowledge. Some analytical key concepts are not easy to understand without previous knowledge, even though the author strives on making it easy to follow and understand.Final notes: Overall, the book is very well written. It has first-class world problem examples, and the author shows how to create innovative AI solutions with the latest available tools. For me, the real gain is attained by focusing on the explainability for the inputs, the model, the outputs, and the events occurring when the AI model is in production. Another great benefit is to learn about the accountability requirements for the Ethical, Moral, and Legal Implications of the models being implemented by the algorithms. I have been in contact with the author and he's knowledgeable, approachable, and eager to learn from us all as well, which is a plus.The most important lessons I've learned from this book --that I hope you learn as you read, are:- If critical errors go unexplained, we will lose the trust of users in a few hours after having worked for months on an AI project.- We need to explain the predictions, not just make them, this will help users to trust the XAI system to make decisions. XAI is not only for developers but for users too!- The whole point of people-centered AI, is to learn how to detect weaknesses in our ML predictions and find innovative ways of improving the prediction.- XAI involves the ability to explain the subject matter expert (SME) aspects of a project from different perspectives. A developer will not have the same need for explanations as an end-user. An AI program must provide information for all types of explanations.- A user will not trust a prediction from a black box decision-making process.- In a data-sensitive project, do not rush to automate everything.- We must start carefully with a people-centered approach controlling the privacy and legal constraints, the quality of the data, and every other important aspect of such critical data.- When we are ready to move into a fully automated process, we need to get legal advice first, and then use automatic data extraction tools later.Overall I highly recommend this book for those who are seeking not only how to learn about AI, Data Science, Machine Learning, and so forth; but for those who want to properly account for ethical AI algorithms as well.
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries:
Afghanistan
American Samoa
Belarus
Brunei Darussalam
Central African Republic
The Democratic Republic of Congo
Eritrea
Guinea-bissau
Iran
Lebanon
Libiya Arab Jamahriya
Somalia
Sudan
Russian Federation
Syrian Arab Republic
Ukraine
Venezuela
What is custom duty/charge?
Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.
Do I have to pay customs charges for the print book order?
The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.
A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.
How do I know my custom duty charges?
The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.
For example:
If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order?
Cancellation Policy for Published Printed Books:
You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.
Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.
What is your returns and refunds policy?
Return Policy:
We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:
If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.
On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.
What tax is charged?
Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.
What payment methods can I use?
You can pay with the following card types:
Visa Debit
Visa Credit
MasterCard
PayPal
What is the delivery time and cost of print books?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries: