liveBook · Manning

Chapter 8: Introduction to Deep Learning

What you will learn in chapter 8 of Build AI Drug Discovery Pipelines

This introduction previews the chapter’s move from earlier ligand-based machine learning work to applied deep learning with PyTorch and outlines the sections ahead.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction previews the chapter’s move from earlier ligand-based machine learning work to applied deep learning with PyTorch and outlines the sections ahead.

8.1 Ligand-based VS with PyTorch

This introduction explains why deep learning is promising for modeling protein–ligand interactions before previewing the section’s kinase and PyTorch example.

Key terms: deep learning, neural networks, protein-ligand interactions

8.1.1 Protein Kinases

This section explains why EGFR is a useful kinase target and introduces the activity data, inhibitor library, and selectivity considerations for screening it.

Key terms: protein kinases, ATP, phosphate group, kinome, ligand-gated ion channels, GPCRs, tyrosine kinase-linked receptors, nuclear receptors, EGFR, mutations

8.1.2 Our First PyTorch Model

This section introduces PyTorch tensors and walks through preparing data, training, evaluating, and saving a first neural-network model for ligand-based virtual screening.

Key terms: tensor, dtype, shape, device, precision, element-wise, reshape, view, transpose, cat

8.1.3 Enrichment Factors in Virtual Screening

The section shows how to rank an EGFR compound library with a trained model and evaluate whether its ranking finds active compounds early.

Key terms: ligand-based VS, Hinge Binders Library, applicability domain, EGFR pIC50, scoring functions, early recognition, enrichment factor, EF, scoring function, optimal enrichment

8.2 Neural Networks & PyTorch Mechanics

This introduction grounds the upcoming discussion of neural-network mechanics in the EGFR activity-prediction model.

Key terms: EGFR, 2,048-bit Morgan fingerprints, pIC50, mean squared error, gradients, weights

8.2.1 Models as Computational Graphs

This section uses computational graphs to explain how PyTorch computes predictions and gradients, then extends a logistic-regression unit into a multilayer neural network.

Key terms: computational graph, node, edge, loss, forward pass, backward pass, backpropagation, Autograd, backward(), requires_grad

8.2.2 Implementing a Neural Network

This section implements a PyTorch neural network for kinase activity prediction and explains how its layer design, initialization, activations, and dropout affect learning.

Key terms: KinaseBinderNN, nn.Module, __init__, forward, Linear, input_size, weight matrix, bias vector, random initialization, vanishing gradients

8.2.3 Training & Applying our Neural Network

This section explains how to train a PyTorch neural network, monitor validation performance, adjust learning rates, and run inference on test data.

Key terms: forward pass, optimizer.zero_grad(), criterion, loss.backward(), optimizer.step(), backpropagation, model.eval(), torch.no_grad(), validation loss, generalization error

8.3 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 7: Unsupervised Learning: Repurposing Drugs, Curating Compounds, & Screening Fragments Chapter 9: Structure-based Drug Design with Active Learning →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.