Transfer Learning
Transfer learning in Deeplearning4j — TransferLearning.Builder, FineTuneConfiguration, freezing layers, and modifying pretrained networks
Overview
Core Classes
Class
Description
FineTuneConfiguration
Method
Description
TransferLearning.Builder (for MultiLayerNetwork)
Basic Usage
Key Methods
Method
Description
TransferLearning.GraphBuilder (for ComputationGraph)
Key Methods
Method
Description
Common Transfer Learning Patterns
Pattern 1: Replace the Classification Head Only
Pattern 2: Modify an Intermediate Layer Width and Add New Layers
Pattern 3: Progressive Unfreezing
Pattern 4: MultiLayerNetwork Transfer Learning
TransferLearningHelper
Featurizing a Dataset
Training on Featurized Data
Helper Methods
Method
Description
Using Zoo Models as Starting Points
Important Notes
Frozen Layers Are Not Saved
TransferLearning Returns a New Model
Changing nOut Cascades to nIn of Downstream Layers
FineTuneConfiguration Selectively Updates
Saving the Transfer-Learned Model
Last updated
Was this helpful?