liveBook · Manning

From_preset()

from_preset() is a constructor that loads a pretrained model and its associated configuration, weights, and tokenizer assets from a named preset.

How 2 Manning books explain it

Deep Learning with R, Third Edition

from_preset() is a KerasHub constructor that loads a pretrained model together with its configuration, weights, and tokenizer assets.

How it is used
Loads compatible pretrained model components for language modeling and image feature extraction.
How deep it goes
Defines the constructor and demonstrates tokenizer, backbone, preprocessing, and freezing, without explaining checkpoint internals.
Examples
Uses RoBERTa text loading and Xception image loading, preprocessing, feature extraction, and frozen-backbone classification.
What you can do after
Apply it via KerasHub to instantiate pretrained tokenizers, backbones, and preprocessing layers from named presets.

Read how Deep Learning with R, Third Edition explains from_preset() →

Deep Learning with Python, Third Edition

A constructor used to load a pretrained model’s weights, configuration, and tokenizer assets from a preset.

How it is used
Loads pretrained KerasHub components for language modeling or image feature extraction without recreating their implementation.
How deep it goes
Explains constructor behavior and practical pairing, but stops short of preset-file formats or asset-resolution internals.
Examples
Uses RoBERTa tokenization, RoBERTa backbone loading, Xception feature extraction, and frozen convolutional bases.
What you can do after
Apply it via KerasHub to load pretrained backbones, tokenizers, and preprocessing components for downstream models.

Read how Deep Learning with Python, Third Edition explains from_preset() →

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.