liveBook · Manning

Generator

A generator is a computational component or construct that produces data or values from inputs, representations, context, or specified constraints.

How 12 Manning books explain it

Learn Generative AI with PyTorch

The GAN component that maps latent inputs to synthetic samples intended to look like training data.

How it is used
Creates synthetic samples that resemble training data while a discriminator or critic evaluates them during GAN training.
How deep it goes
Builds dense and convolutional generators with specified inputs, outputs, and layers, then works through adversarial updates and model reuse.
Examples
Uses exponential-curve points, multiples-of-five sequences, grayscale clothing, anime faces, image translation, and music pieces.
What you can do after
Build it from scratch in PyTorch, train it against a discriminator, and save the trained generator to produce new samples.

Read how Learn Generative AI with PyTorch explains generator →

Inside Deep Learning: Math, Algorithms, Models

In a GAN, the neural network that maps latent inputs to synthetic examples.

How it is used
Deploys as the sample-producing half of a GAN for synthetic data, image manipulation, augmentation, and one-to-many outputs.
How deep it goes
Explains latent dimensions, output reshaping, alternating updates, losses, mode collapse, and convolutional upsampling with PyTorch code.
Examples
Uses toy two-dimensional distributions, MNIST digits, fully connected networks, and convolutional generators with transposed convolutions.
What you can do after
Builds and trains fully connected or convolutional generators in PyTorch, then samples and visualizes their synthetic outputs.

Read how Inside Deep Learning: Math, Algorithms, Models explains generator →

Evolutionary Deep Learning: Genetic algorithms and neural networks

A GAN generator is the neural-network component of a generative adversarial network that maps latent inputs or noise samples to synthetic data.

How it is used
Generates fake images from noisy latent vectors for adversarial training against a discriminator.
How deep it goes
Builds and trains a convolutional Keras generator, then examines training failures rather than deriving GAN theory.
Examples
Uses single-class digit images, 100-dimensional noise, a convolutional generator, training-loss output, and activation swaps to inspect vanishing gradients.
What you can do after
Build it from scratch as a Keras convolutional model and train it through a discriminator-frozen combined GAN.

Read how Evolutionary Deep Learning: Genetic algorithms and neural networks explains generator →

Functional Programming in Scala, Second Edition

A generator is a parameterized representation of a computation that produces test-case values, potentially for any element type.

How it is used
Supplies varied test cases for property-based testing and composes with predicates into executable specifications.
How deep it goes
Defines Gen[A], develops combinators, and descends to State[RNG, A]; leaves function generation as an open challenge.
Examples
Uses integer ranges, lists, dependent string pairs, dynamically sized lists, unions, weighted choices, and takeWhile properties.
What you can do after
Build it from scratch with choose, unit, boolean, listOfN, flatMap, union, and weighted.

Read how Functional Programming in Scala, Second Edition explains generator →

Generative AI in Action

A text generator is a model or model component that produces natural-language text from input context.

How it is used
Uses model context to produce natural-language answers, verified statements, or questions, and uses prompts or noise to produce images.
How deep it goes
Defines generator roles and training flows, then explains retrieved context and document marginalization without deriving deep model mathematics.
Examples
Uses GAN image synthesis and RAG question answering, fact verification, and question generation.
What you can do after
Apply it via a RAG pipeline to generate answers from retrieved documents.

Read how Generative AI in Action explains generator →

Build a Text-to-Image Generator (from Scratch)

A GAN generator is a neural network that transforms random input noise into synthetic samples intended to resemble real data.

How it is used
Uses random noise to synthesize realistic data in GANs and decoder states to predict target tokens in transformers.
How deep it goes
Explains inputs, outputs, adversarial training, and transformer placement, but does not provide generator implementation code or detailed internals.
Examples
Uses synthetic GAN samples, high-resolution VQGAN images, and German-to-English translation such as “Wie geht es dir” to “How are you.”
What you can do after
Evaluate/understand how generators synthesize samples or produce next-token probabilities within adversarial and encoder–decoder systems.

Read how Build a Text-to-Image Generator (from Scratch) explains generator →

Grokking Machine Learning

A generator is the component of a generative adversarial network that produces synthetic data intended to resemble real data.

How it is used
Creates synthetic images within a generative adversarial network.
How deep it goes
Defines the generator’s role and training interaction but does not detail its internal architecture or optimization.
Examples
Uses fake images and generated human faces as concrete examples of synthetic output.
What you can do after
Evaluate/understand how a GAN generator creates realistic-looking images through competition with a discriminator.

Read how Grokking Machine Learning explains generator →

Outlier Detection in Python

A generator is the component of a generative adversarial network that produces synthetic outputs from input noise or latent representations.

How it is used
Uses latent noise to generate realistic synthetic data within GAN-based outlier detection.
How deep it goes
Explains inputs, outputs, adversarial training, and stopping criteria, but does not provide generator implementation details.
Examples
Uses random noise z, real data X, and synthetic output G(z) as its central examples.
What you can do after
Apply the trained generator–discriminator system to produce synthetic data and support outlier detection.

Read how Outlier Detection in Python explains generator →

Transformers in Action

A generator is a generative model component that produces an output from an input representation or retrieved context.

How it is used
Generates grounded responses from retrieved context during RAG inference.
How deep it goes
Explains inputs, role, and model choices, but stops short of generator internals or parameter-training procedures.
Examples
Uses a RAG workflow and an Amazon net-income query to illustrate context selection followed by answer generation.
What you can do after
Operate a RAG pipeline that passes retrieved or reranked context to an LLM for response generation.

Read how Transformers in Action explains generator →

Introduction to Generative AI, Second Edition

A generator is the component of a generative adversarial network that produces synthetic data intended to resemble authentic data.

How it is used
Explains how GANs produce increasingly convincing synthetic data through competition between generation and evaluation.
How deep it goes
Defines the generator’s role and explains its feedback loop intuitively, stopping short of implementation or mathematical detail.
Examples
Uses counterfeit artworks and synthetic images to illustrate increasingly realistic generation.
What you can do after
Evaluate and understand the generator’s role in the GAN feedback loop.

Read how Introduction to Generative AI, Second Edition explains generator →

Data Without Labels

A generator is the component of a generative adversarial network that maps input noise or signals to synthetic data.

How it is used
Creates synthetic data within GANs for image generation, style transfer, and data augmentation.
How deep it goes
Explains noise input, layered transformation, loss measurement, and adversarial updates without detailing optimizer or implementation code.
Examples
Uses random noise, synthetic images or text, convolutional layers, transposed convolutions, recurrent layers, and binary cross-entropy.
What you can do after
Evaluate/understand how GAN generators transform noise and improve outputs through discriminator feedback.

Read how Data Without Labels explains generator →

Building Reliable AI Systems

A model component that produces a response from a query and supplied context.

How it is used
Uses retrieved information alongside a user query to produce contextually relevant responses in a RAG system.
How deep it goes
Defines the generator’s inputs and output and traces its place in RAG flow without detailing its internal mechanisms.
Examples
Demonstrates responses to an e-commerce lamp-warranty query and a store-credit return-policy query.
What you can do after
Apply it via a RAG system to produce query-specific responses that incorporate retrieved information.

Read how Building Reliable AI Systems explains generator →

Related concepts

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.