Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Deep Learning and XAI Techniques for Anomaly Detection

You're reading from  Deep Learning and XAI Techniques for Anomaly Detection

Product type Book
Published in Jan 2023
Publisher Packt
ISBN-13 9781804617755
Pages 218 pages
Edition 1st Edition
Languages
Author (1):
Cher Simon Cher Simon
Profile icon Cher Simon
Toc

Table of Contents (15) Chapters close

Preface 1. Part 1 – Introduction to Explainable Deep Learning Anomaly Detection
2. Chapter 1: Understanding Deep Learning Anomaly Detection 3. Chapter 2: Understanding Explainable AI 4. Part 2 – Building an Explainable Deep Learning Anomaly Detector
5. Chapter 3: Natural Language Processing Anomaly Explainability 6. Chapter 4: Time Series Anomaly Explainability 7. Chapter 5: Computer Vision Anomaly Explainability 8. Part 3 – Evaluating an Explainable Deep Learning Anomaly Detector
9. Chapter 6: Differentiating Intrinsic and Post Hoc Explainability 10. Chapter 7: Backpropagation versus Perturbation Explainability 11. Chapter 8: Model-Agnostic versus Model-Specific Explainability 12. Chapter 9: Explainability Evaluation Schemes 13. Index 14. Other Books You May Enjoy

Solution walkthrough

This section provides a detailed review of the visual anomaly detection example to interpret anomalies identified by a pre-trained VGG16 model. The sample notebook, chapter5_gradcam_cv.ipynb, can be found in the book’s GitHub repo:

  1. First, let’s install the required packages using the requirements.txt file:
    import sys
    !{sys.executable} -m pip install -qr requirements.txt
  2. Load the essential libraries:
    import cv2
    import os
    import re
    import glob
    import random
    import warnings
    import numpy as np
    import pandas as pd
    import scipy as sp
    import matplotlib.pyplot as plt
    import matplotlib.cm as cm
    import matplotlib.image as mpimg
    from platform import python_version
    from IPython.display import Image, display
    from sklearn.model_selection import train_test_split
    from sklearn.metrics import classification_report, accuracy_score, confusion_matrix, ConfusionMatrixDisplay
    import tensorflow as tf
    from tensorflow import keras
    from tensorflow.keras.models import *
    from tensorflow...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime