liveBook · Manning

Deep learning

As explained in Evolutionary Deep Learning: Genetic algorithms and neural networks

A deep learning model is a neural network with multiple learned layers that learns hierarchical representations from data.

Deep learning uses neural networks with multiple learned layers to solve AI and machine-learning tasks. Its practical challenge is not only training a network, but also developing, tuning, and optimizing a system that needs substantial data and computational resources. section 1.0 section 1.6

A usable model is rarely taken directly out of the box. Improvement can require choosing an architecture and adjusting options such as learning rate, activation function, training-data amount, batch size, epochs, and middle-layer size. These choices interact: larger models may fit better but take longer to train, while data and batch-size changes must be balanced. section 1.3 section 5.1.1

Evolutionary deep learning treats optimization as a broader automation problem across the development workflow:

  • Use evolutionary computation to alter or create combined evolutionary computation/deep-learning models. section 1.5
  • Apply approaches including neuroevolution, evolutionary hyperparameter optimization, and neuroevolution of augmenting topologies. section 1.6
  • Contrast customizable evolutionary strategies with AutoML services, which can automate workflows but may limit agile customization. section 1.6

Tune a function-approximating network

Run a PyTorch notebook that approximates a function, then change middle-layer size, batch_size, and data_step. Compare predicted fit and training time; changing the middle layer to 25 or larger produces a better-fitting second test in the demonstrated run. section 5.1 section 5.1.1

Classify handwritten digits

Load and normalize MNIST images, train a network, inspect loss, accuracy, and a classification report, then run genetic-algorithm evolution and compare its accuracy progression with the trained model. section 6.5

Figure 1.4 Applying EC (EDL) to the AI/ML model development workflow for DL

Maps where evolutionary-computation methods can be applied to deep-learning development across the AI/ML workflow. section 1.5

How Evolutionary Deep Learning: Genetic algorithms and neural networks covers it

How deep it goes
Works through hyperparameter experiments and MNIST training, while deferring basic deep-learning principles to prior knowledge.
Examples
Uses PyTorch function approximation and TensorFlow/Keras MNIST handwritten-digit classification with evolutionary optimization.
What it assumes
Assumes perceptrons, multilayer perceptrons, activation functions, and optimization methods before hyperparameter tuning.
What you can do after
Apply it via PyTorch or Keras to train models, vary hyperparameters, and inspect fit, accuracy, and classification reports.
How it connects
Connects deep learning to evolutionary computation, AutoML, hyperparameter optimization, neural networks, and genetic algorithms.

Also explained in

Compare how 11 books explain deep learning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Evolutionary Deep Learning: Genetic algorithms and neural networks. The section links point to the parts of the book it draws on.