Codeless Deep Learning with KNIME

Book description

Discover how to integrate KNIME Analytics Platform with deep learning libraries to implement artificial intelligence solutions

Key Features

  • Become well-versed with KNIME Analytics Platform to perform codeless deep learning
  • Design and build deep learning workflows quickly and more easily using the KNIME GUI
  • Discover different deployment options without using a single line of code with KNIME Analytics Platform

Book Description

KNIME Analytics Platform is an open source software used to create and design data science workflows. This book is a comprehensive guide to the KNIME GUI and KNIME deep learning integration, helping you build neural network models without writing any code. It'll guide you in building simple and complex neural networks through practical and creative solutions for solving real-world data problems.

Starting with an introduction to KNIME Analytics Platform, you'll get an overview of simple feed-forward networks for solving simple classification problems on relatively small datasets. You'll then move on to build, train, test, and deploy more complex networks, such as autoencoders, recurrent neural networks (RNNs), long short-term memory (LSTM), and convolutional neural networks (CNNs). In each chapter, depending on the network and use case, you'll learn how to prepare data, encode incoming data, and apply best practices.

By the end of this book, you'll have learned how to design a variety of different neural architectures and will be able to train, test, and deploy the final network.

What you will learn

  • Use various common nodes to transform your data into the right structure suitable for training a neural network
  • Understand neural network techniques such as loss functions, backpropagation, and hyperparameters
  • Prepare and encode data appropriately to feed it into the network
  • Build and train a classic feedforward network
  • Develop and optimize an autoencoder network for outlier detection
  • Implement deep learning networks such as CNNs, RNNs, and LSTM with the help of practical examples
  • Deploy a trained deep learning network on real-world data

Who this book is for

This book is for data analysts, data scientists, and deep learning developers who are not well-versed in Python but want to learn how to use KNIME GUI to build, train, test, and deploy neural networks with different architectures. The practical implementations shown in the book do not require coding or any knowledge of dedicated scripts, so you can easily implement your knowledge into practical applications. No prior experience of using KNIME is required to get started with this book.

Table of contents

  1. Codeless Deep Learning with KNIME
  2. Why subscribe?
  3. Contributors
  4. About the authors
  5. About the reviewers
  6. Packt is searching for authors like you
  7. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the example workflows
    5. Download the color images
    6. Conventions used
    7. Get in touch
    8. Reviews
  8. Section 1: Feedforward Neural Networks and KNIME Deep Learning Extension
  9. Chapter 1: Introduction to Deep Learning with KNIME Analytics Platform
    1. The Importance of Deep Learning
    2. Exploring KNIME Software
      1. KNIME Analytics Platform
      2. KNIME Server for the Enterprise
    3. Exploring KNIME Analytics Platform
      1. Useful Links and Materials
      2. Build and Execute Your First Workflow
    4. Installing KNIME Deep Learning – Keras Integration
      1. Installing the Keras and TensorFlow Nodes
      2. Setting up the Python Environment
    5. Goal and Structure of this Book
    6. Summary
  10. Chapter 2: Data Access and Preprocessing with KNIME Analytics Platform
    1. Accessing Data
      1. Reading Data from Files
    2. Data Types and Conversions
    3. Transforming Data
    4. Parameterizing the Workflow
    5. Summary
    6. Questions and Exercises
  11. Chapter 3: Getting Started with Neural Networks
    1. Neural Networks and Deep Learning – Basic Concepts
      1. Artificial Neuron and Artificial Neural Networks
      2. Signal Propagation within a Feedforward Neural Network
      3. Understanding the Need for Hidden Layers
      4. Training a Multilayer Perceptron
    2. Designing your Network
      1. Commonly Used Activation Functions
      2. Regularization Techniques to Avoid Overfitting
      3. Other Commonly used Layers
    3. Training a Neural Network
      1. Loss Functions
      2. Parameters and Optimization of the Training Algorithm
    4. Summary
    5. Questions and Exercises
  12. Chapter 4: Building and Training a Feedforward Neural Network
    1. Preparing the Data
      1. Datasets and Classification Examples
      2. Encoding of Nominal Features
      3. Normalization
      4. Other Helpful Preprocessing Nodes
      5. Data Preparation on the Iris Dataset
      6. Data Preparation on the Adult Dataset
    2. Building a Feedforward Neural Architecture
      1. The Keras Input Layer Node
      2. The Keras Dense Layer Node
      3. Building a Neural Network for Iris Flower Classification
      4. Building a Neural Network for Income Prediction
    3. Training the Network
      1. Selecting the Loss Function
      2. Defining the Input and Output Data
      3. Setting the Training Parameters
      4. Tracking the Training Progress
      5. Training Settings for Iris Flower Classification
      6. Training Settings for Income Prediction
    4. Testing and Applying the Network
      1. Executing the Network
      2. Extracting the Predictions and Evaluating the Network Performance
      3. Testing the Network Trained to Classify Iris Flowers
      4. Testing the Network Trained for Income Prediction
    5. Summary
    6. Questions and Exercises
  13. Section 2: Deep Learning Networks
  14. Chapter 5: Autoencoder for Fraud Detection
    1. Introducing Autoencoders
      1. Architecture of the Autoencoder
      2. Reducing the Input Dimensionality with an Autoencoder
      3. Detecting Anomalies Using an Autoencoder
    2. Why is Detecting Fraud so Hard?
    3. Building and Training the Autoencoder
      1. Data Access and Data Preparation
      2. Building the Autoencoder
      3. Training and Testing the Autoencoder
      4. Detecting Fraudulent Transactions
    4. Optimizing the Autoencoder Strategy
      1. Optimizing Threshold
      2. Threshold is defined on a separate subset of data, called the optimization set. There are two options here:
    5. Deploying the Fraud Detector
      1. Reading Network, New Transactions, and Normalization Parameters
      2. Applying the Fraud Detector
      3. Taking Actions
    6. Summary
      1. Questions and Exercises
  15. Chapter 6: Recurrent Neural Networks for Demand Prediction
    1. Introducing RNNs
      1. Recurrent Neural Networks
      2. Recurrent Neural Units
      3. Long Short-Term Memory
    2. The Demand Prediction Problem
      1. Demand Prediction
      2. Predicting Energy Demand
    3. Data Preparation – Creating the Past
      1. Data Loading and Standardization
      2. Data Cleaning and Partitioning
      3. Creating the Input Tensors
    4. Building, Training, and Deploying an LSTM-Based RNN
      1. Building the LSTM-Based RNN
      2. Training the LSTM-Based RNN
      3. Testing the LSTM-Based RNN
      4. Building a Deployment Loop
      5. Deploying the LSTM-Based RNN
    5. Summary
    6. Questions and Exercises
  16. Chapter 7: Implementing NLP Applications
    1. Exploring Text Encoding Techniques for Neural Networks
      1. Index Encoding
      2. One-Hot Vector Encoding
      3. Embeddings for Word Encoding
    2. Finding the Tone of Your Customers' Voice – Sentiment Analysis
      1. Preprocessing Movie Reviews
      2. Defining and Training the Network Architecture
      3. Executing and Evaluating the Network on the Test Set
    3. Generating Free Text with RNNs
      1. The Dataset
      2. Predicting Words or Characters?
      3. Preprocessing and Encoding
      4. Defining and Training the Network Architecture
      5. Building a Deployment Workflow
      6. The New Fairy Tale
    4. Generating Product Names with RNNs
      1. The Problem of Product Name Generation
      2. Preprocessing and Encoding Mountain Names
    5. Defining and Training the Network Architecture
      1. Building a Deployment Workflow
    6. Summary
    7. Questions and Exercises
  17. Chapter 8: Neural Machine Translation
    1. Idea of Neural Machine Translation
    2. Encoder-Decoder Architecture
      1. Applying the Encoder
      2. Applying the Decoder during Training
      3. Applying the Decoder during Deployment
    3. Preparing the Data for the Two Languages
    4. Building and Training the Encoder-Decoder Architecture
      1. Defining the Network Structure
      2. Training the Network
      3. Extracting the Trained Encoder and Decoder
      4. Applying the Trained Network for Neural Machine Translation
    5. Summary
    6. Questions and Exercises
  18. Chapter 9: Convolutional Neural Networks for Image Classification
    1. Introduction to CNNs
      1. How are Images Stored?
      2. Why do we need CNNs?
      3. How does a Convolution Layer work?
      4. Introducing Padding
      5. Introducing Stride and Dilation Rate
      6. Introducing Pooling
    2. Classifying Images with CNNs
      1. Reading and Preprocessing Images
      2. Designing the Network
      3. Training and Applying the Network
      4. Prediction Extraction and Model Evaluation
    3. Introduction to transfer learning
      1. Why use Transfer Learning?
      2. Formal Definition of Transfer Learning
      3. Applying Transfer Learning
    4. Applying Transfer Learning for Cancer Type Prediction
      1. Downloading the Dataset
      2. Reading and Preprocessing the Images
      3. Training the Network
    5. Summary
    6. Questions and Exercises
  19. Section 3: Deployment and Productionizing
  20. Chapter 10: Deploying a Deep Learning Network
    1. Conversion of the Network Structure
      1. Saving a Trained Network
      2. Reading a Trained Network
      3. Using TensorFlow 2
    2. Building a Simple Deployment Workflow
      1. Building a Deployment Workflow Manually, without Integrated Deployment
      2. Building a Deployment Workflow Automatically with Integrated Deployment
    3. Improving Scalability – GPU Execution
    4. Summary
    5. Questions and Exercises
  21. Chapter 11: Best Practices and Other Deployment Options
    1. Building a Web Application
      1. Introduction to KNIME WebPortal
      2. Creating a Workflow to Run on KNIME WebPortal
      3. Creating Composite Views
      4. Shared Components
      5. Building a WebPortal Application for Cancer Cell Classification
    2. Building a Web Service with the REST Interface
      1. Building a REST Service Workflow
    3. KNIME Tips and Tricks
      1. Shuffling Data during Training
      2. Using Batch Normalization
      3. Keeping Your Workflow Clean and Structured
      4. Using the GroupBy Node and Pivoting Node to Avoid Loops
      5. Specifying the Execution Order
    4. Summary
    5. Questions and Exercises
  22. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think

Product information

  • Title: Codeless Deep Learning with KNIME
  • Author(s): Kathrin Melcher, Rosaria Silipo
  • Release date: November 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781800566613