š”– Scriptorium
✦   LIBER   ✦

šŸ“

Deep Learning Projects Using TensorFlow 2: Neural Network Development with Python and Keras

āœ Scribed by Vinita Silaparasetty


Publisher
Apress
Year
2020
Tongue
English
Leaves
439
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Work through engaging and practical deep learning projects using TensorFlow 2.0. Using a hands-on approach, the projects in this book will lead new programmers through the basics into developing practical deep learning applications.Ā 

Deep learning is quickly integrating itself into the technology landscape. Its applications range from applicable data science to deep fakes and so much more. It is crucial for aspiring data scientists or those who want to enter the field of AI to understand deep learning concepts.Ā 

The best way to learn is by doing. You'll develop a working knowledge of not only TensorFlow, but also related technologies such as Python and Keras. You'll also work with Neural Networks and other deep learning concepts. By the end of the book, you'll have a collection of unique projects that you can add to your GitHub profiles and expand on for professional application.Ā 

What You'll Learn
  • Grasp the basic process of neural networks through projects, such as creating music
  • Restore and colorize black and white images with deep learning processes
Who This Book Is For

Beginners new to TensorFlow and Python.Ā 

✦ Table of Contents


Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Preface
Chapter 1: Getting Started: Installation and Troubleshooting
Installing Python 3
Method 1: Direct Installation fromĀ theĀ Official Python Website
Troubleshooting Tips
Method 2: Using Anaconda
Troubleshooting Tips
Installing Jupyter Notebook
Dependencies
Method 1: Using theĀ PIP Installation Package
Troubleshooting Tips
Method 2: Using Anaconda
Troubleshooting Tips
Installing TensorFlow 2.0
Dependencies
Method 1: Using theĀ PIP Installation Package
Troubleshooting Tips
Method 2: Using Anaconda
Troubleshooting Tips
Installing Keras
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Installing Python Libraries
Installing NumPy
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Installing SciPy
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Installing Matplotlib
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Installing Pandas
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Installing Scikit-Learn
Dependencies
Using theĀ PIP Installation Package
Troubleshooting Tips
Summary
Chapter 2: Perceptrons
Biological Neurons
Artificial Neurons
Perceptrons
Perceptron Learning Rule
Types ofĀ Activation Functions
The Sigmoid Activation Function
The ReLU Function
The Softmax Function
Perceptrons inĀ Action
Stage 1: Forward Propagation ofĀ Inputs
Stage 2: Calculation ofĀ theĀ Net Input
Weights
Bias
Net Input
Stage 3: Activation Function
Stage 4: Backward Propagation
Project Description
Important Terminology
Required Libraries
Procedure
Step 1. Import Libraries
Step 2. Declare Parameters
Step 3. Declare theĀ Weights andĀ Bias
Step 4. Define theĀ Perceptron Function
Step 5. Define theĀ Loss Function andĀ Optimizer
Step 6. Read inĀ theĀ Data
Step 7. Visualization ofĀ Labels
Step 8. Prepare Inputs
Step 9. Initialize Variables
Step 10. Train theĀ Model
Step 11. New Values forĀ Weights andĀ Bias
Step 12. View theĀ Final Loss
Step 13. Predicting Using theĀ Trained Model
Step 14. Evaluate theĀ Model
Summary
Chapter 3: Neural Networks
What Is aĀ Neural Network?
Neural Network Components
Advantages ofĀ Neural Networks
Disadvantages ofĀ aĀ Neural Networks
How aĀ Neural Network Works
Forward Propagation
Backward Propagation
Types ofĀ Neural Networks
Feedforward Neural Network
Convolutional Neural Networks
Recurrent Neural Network (RNN)
Radial Basis Function Neural Network (RBNN)
Project Description
Flattening Data
About theĀ Dataset
Required Libraries
Neural Network Architecture
Procedure
Summary
References
Chapter 4: Sentiment Analysis
LSTM Review
How anĀ LSTM Works
Layers inĀ anĀ LSTM
Project Description
About theĀ Dataset
Understanding Sentiment Analysis
Types ofĀ Sentiment Analysis
Fine-Grained Sentiment Analysis
Emotion Detection
Aspect-Based Sentiment Analysis
Intent Analysis
Multilingual Sentiment Analysis
Sentiment Analysis Algorithms
Sentiment Analysis Metrics forĀ Evaluation
Cross-Validation
Precision
Recall
Accuracy
Hybrid Approaches
Parameters Affecting Model Performance
Subjectivity andĀ Tone
Context andĀ Polarity
Irony andĀ Sarcasm
Comparisons
Defining Neutral Emotions
Tokenizer
H5 File
JSON File
Required Libraries
LSTM Architecture
Procedure
Step 1. Import Libraries
Step 2. Load theĀ Data
Step 3. Prepare theĀ Data
Step 4. Clean theĀ Data
Step 5. Structure theĀ Model
Step 6. Compile theĀ Model
Step 7. Train theĀ Model
Step 8. Save theĀ Model (Optional)
Step 9. Import theĀ Pretrained Model (Optional)
Further Tests
Troubleshooting
Summary
References
Further Reading
Chapter 5: Music Generation
GRU Overview
How aĀ GRU Works
GRU Stages
Stage 1
Stage 2
Stage 3
Stage 4
GRU Layers
Comparing GRU andĀ LSTM
Project Description
About theĀ Dataset
Important Terminology andĀ Concepts
Required Libraries
Installation Instructions
Using PIP
Using Windows
Using macOS
Using Linux
Installation Troubleshooting
GRU Architecture
Procedure
Step 1. Import Libraries
Step 2. Load theĀ Data
Step 3. Feature Extraction
Step 4. Exploratory Data Analysis (EDA)
Step 5. Data Preparation (Input)
Step 6. Structure theĀ Model
Step 7. Train theĀ Model
Step 8. Prediction
Step 9. Data Preparation (Offset)
Step 10. Store theĀ Output asĀ aĀ MIDI File
Further Tests
Troubleshooting
Summary
References
Resources
Further Reading
Chapter 6: Image Colorization
Human Vision Review
Computer Vision Review
How aĀ CNN Works
Input Layer
Convolution Layer: TheĀ Kernel
Upsampling Layer
DepthwiseConv2D
Pooling Layer
Fully Connected Layer
Project Description
About theĀ Dataset
Important Terminology
Color Space
Image Colorization
VGG-16
MAPE Loss Functions
Required Libraries
Installation Instructions
Installing PIL
Troubleshooting PIL
Installing CV2
Troubleshooting CV2
Installing Scikit-Image
Troubleshooting Scikit-Image
CNN+VGG-16 Architecture
Procedure
Step 1. Import theĀ Libraries
Step 2. Convert theĀ Images toĀ Grayscale
Step 3. Load theĀ Data
Step 4. Structure theĀ Model
Step 5. Set theĀ Model Parameters
Step 6. Data Preparation
Step 7. Train theĀ Model
Step 8. Obtain Predictions
Step 9. View theĀ Results
Troubleshooting
Further Tests
Summary
References
Further Reading
Chapter 7: Image Deblurring
What Is aĀ GAN?
Types ofĀ GANs
How aĀ GAN Works
The Generative Model
Process Within theĀ Generator
The Discriminator Model
Process Within theĀ Discriminator
Project Description
About theĀ Dataset
Important Terminology andĀ Concepts
Image Deblurring
Defocusing
Motion Smudging
Convolution
Deconvolution
GAN Architecture
Required Libraries
GAN Architecture
Generator
Discriminator
Procedure
Step 1. Import theĀ Libraries
Step 2. Dataset Preparation
Step 3. Exploratory Data Analysis
Step 4. Structure theĀ Model
Step 5. Input Preparation
Step 6. View theĀ Images
Step 7. Save Results
Troubleshooting
Further Tests
Summary
References
Further Reading
Chapter 8: Image Manipulation
Project Description
Important Terminology andĀ Concepts
Multimedia Forensics
Acquisition
Coding
Editing
Saving
Copy-Move Forgeries
About theĀ Dataset
Required Libraries
Troubleshooting
CNN Architecture
Procedure
Step 1. Import theĀ Libraries
Step 2. Preparing theĀ Dataset
Step 2a. Sort andĀ Collect theĀ Authentic Data
Step 2b. Sort andĀ Collect theĀ Manipulated Data
Step 2c. Transform andĀ Convert theĀ Data toĀ anĀ Array
Step 2d. Create theĀ Combined Dataset
Step 2e. Define theĀ Optimizer
Step 3. Structure theĀ Model
Step 4. Train theĀ Model
Step 5. Test theĀ Model
Step 6. Check theĀ Results
Further Tests
Summary
References
Further Reading
Chapter 9: Neural Network Collection
Neural Network Zoo Primer
Neural Networks
Recurrent Neural Networks (RNNs)
Reservoir Computing
Multiplicative LSTM
ANNs withĀ Attention
Transformers
Autoencoder
Variational Autoencoders
Denoising Autoencoders
Recurrent Autoencoders
Sparse Autoencoders
Stacked Autoencoders
Convolutional Autoencoders
Stacked Denoising Autoencoders
Stochastic Corruption inĀ SDAs
Contractive Autoencoders
Markov Chains
Hopfield Networks
How Human Memory Works
Bidirectional Associative Memory
Boltzmann Machines
Restricted Boltzmann Machines
Deep Belief Networks
Deconvolutional Networks
Deep Convolutional Inverse Graphics Networks
Liquid State Machines
Human Brain Spiking
Echo State Networks (ESNs)
Deep Residual Network (ResNet)
ResNeXt
Neural Turing Machines
Reading
Capsule Networks
CAPSNet Architecture
LeNet-5
AlexNet
GoogLeNet
Xception
Optimizers
Stochastic Gradient Descent
RMSProp
AdaGrad
AdaDelta
Adam
Adamax
Nesterov Accelerated Gradient (NAG)
Nadam
Loss Functions
Mean Squared Error (MSE)
Mean Absolute Error (MAE)
Mean Absolute Percentage Error (MAPE)
Mean Squared Logarithmic Error (MSLE)
Squared Hinge
Hinge
Categorical Hinge
Log Cosh
Huber Loss
Categorical Cross-Entropy
Sparse Categorical Cross-Entropy
Binary Cross-Entropy
Kullback-Leibler Divergence
Poisson
References
Further Reading
Appendix: Portfolio Tips
Data Analyst Portfolios
LinkedIn Profile
GitHub Profile
Kaggle
Blogging Platforms
Sharing Your Portfolio
Twitter
Facebook
LinkedIn Groups
Tableau Public (Optional)
Types ofĀ Projects
Data Cleaning Project
Data Storytelling Project
Explanatory Post
Projects toĀ Avoid
Selecting aĀ Topic
Defining Problem Statements
Phase 1: Understanding theĀ Goals and Expectations
Phase 2: Translating theĀ Goals toĀ Data Analysis Goals
Phase 3: Framing theĀ Problem Statement
Phase 4: Choosing aĀ Success Metric
Using Design Thinking
Benefits ofĀ Design Thinking
Phase 1: Planning
Phase 2: Model Design
Phase 3: Prototyping
Phase 4: Black-Box Testing
Black-Box Testing Techniques forĀ Machine Learning Models
Solution Implementation
Phase 1: Data Collection
Phase 2: Data Exploration
Why EDA?
Univariate EDA
Multivariate EDA
Phase 3: Data Handling
Phase 4: Data Mining
Underfitting
Overcoming Underfitting
Overfitting
Overcoming Overfitting
Phase 5: Prototyping
Phase 6. Storytelling
What Is Color Theory?
Maintenance
Uploading Your Project toĀ GitHub
Tips forĀ Documenting Projects
Appendix Checklist
References
Further Reading
Resources forĀ Building Your Portfolio
Read.me Template
Project Title
Problem Statement
Road Map Template
Data Cleaning Checklist
Index


šŸ“œ SIMILAR VOLUMES


Deep Learning Projects Using TensorFlow
āœ Vinita Silaparasetty šŸ“‚ Library šŸ“… 2020 šŸ› Apress 🌐 English

<div><div>Work through engaging and practical deep learning projects using TensorFlow 2.0. Using a hands-on approach, the projects in this book will lead new programmers through the basics into developing practical deep learning applications.Ā </div><div><br></div><div>Deep learning is quickly integr

Hands-On Transfer Learning with Python I
āœ Dipanjan Sarkar, Raghav Bali, Tamoghna Ghosh šŸ“‚ Library šŸ“… 2018 šŸ› Packt Publishing 🌐 English

Deep learning simplified by taking supervised, unsupervised, and reinforcement learning to the next level using the Python ecosystem Key Features • Build deep learning models with transfer learning principles in Python • implement transfer learning to solve real-world research problems • Perfo

Python Deep Learning: Exploring deep lea
āœ Ivan Vasilev, Daniel Slater, Gianmario Spacagna, Peter Roelants, Valentino Zocca šŸ“‚ Library šŸ“… 2019 šŸ› Packt Publishing 🌐 English

Exploring an advanced state of the art deep learning models and its applications using Popular python libraries like Keras, Tensorflow, and Pytorch Key Features • A strong foundation on neural networks and deep learning with Python libraries. • Explore advanced deep learning techniques and thei

Hands-On Deep Learning Architectures wit
āœ Yuxi (Hayden) Liu, Saransh Mehta šŸ“‚ Library šŸ“… 2019 šŸ› Packt Publishing 🌐 English

<p><b>Concepts, tools, and techniques to explore deep learning architectures and methodologies</b></p> <h4>Key Features</h4> <ul><li>Explore advanced deep learning architectures using various datasets and frameworks </li> <li>Implement deep architectures for neural network models such as CNN, RNN, G

Hands-On Deep Learning Architectures wit
āœ Yuxi (Hayden) Liu, Saransh Mehta šŸ“‚ Library šŸ“… 2019 šŸ› Packt Publishing 🌐 English

<p><b>Concepts, tools, and techniques to explore deep learning architectures and methodologies</b></p> <h4>Key Features</h4> <ul><li>Explore advanced deep learning architectures using various datasets and frameworks </li> <li>Implement deep architectures for neural network models such as CNN, RNN, G