Main Content

Benutzerdefinierte Trainingsschleifen

Anpassen von Deep-Learning-Trainingsschleifen und Verlustfunktionen für Sequenz- und Tabellendaten

Wenn die Funktion trainingOptions nicht die Trainingsoptionen bietet, die Sie für Ihre Aufgabe benötigen, oder Sie eine Verlustfunktion haben, die von der trainnet-Funktion nicht unterstützt wird, können Sie eine eigene Trainingsschleife definieren. Für Modelle, die nicht als Netz von Schichten angegeben werden können, können Sie das Modell als Funktion definieren. Weitere Informationen finden Sie unter Define Custom Training Loops, Loss Functions, and Networks.

Funktionen

alle erweitern

dlnetworkDeep learning neural network (Seit R2019b)
trainingProgressMonitorMonitor and plot training progress for deep learning custom training loops (Seit R2022b)
minibatchqueueCreate mini-batches for deep learning (Seit R2020b)
padsequencesPad or truncate sequence data to same length (Seit R2021a)
dlarrayDeep learning array for customization (Seit R2019b)
dlgradientCompute gradients for custom training loops using automatic differentiation (Seit R2019b)
dlfevalEvaluate deep learning model for custom training loops (Seit R2019b)
crossentropyCross-entropy loss for classification tasks (Seit R2019b)
l1lossL1 loss for regression tasks (Seit R2021b)
l2lossL2 loss for regression tasks (Seit R2021b)
huberHuber loss for regression tasks (Seit R2021a)
mseHalf mean squared error (Seit R2019b)
ctcConnectionist temporal classification (CTC) loss for unaligned sequence classification (Seit R2021a)
dlconvDeep learning convolution (Seit R2019b)
dltranspconvDeep learning transposed convolution (Seit R2019b)
lstmLong short-term memory (Seit R2019b)
gruGated recurrent unit (Seit R2020a)
attentionDot-product attention (Seit R2022b)
embedEmbed discrete data (Seit R2020b)
fullyconnectSum all weighted input data and apply a bias (Seit R2019b)
dlode45Deep learning solution of nonstiff ordinary differential equation (ODE) (Seit R2021b)
batchnormNormalize data across all observations for each channel independently (Seit R2019b)
crosschannelnormCross channel square-normalize using local responses (Seit R2020a)
groupnormNormalize data across grouped subsets of channels for each observation independently (Seit R2020b)
instancenormNormalize across each channel for each observation independently (Seit R2021a)
layernormNormalize data across all channels for each observation independently (Seit R2021a)
avgpoolPool data to average values over spatial dimensions (Seit R2019b)
maxpoolPool data to maximum value (Seit R2019b)
maxunpoolUnpool the output of a maximum pooling operation (Seit R2019b)
reluApply rectified linear unit activation (Seit R2019b)
leakyreluApply leaky rectified linear unit activation (Seit R2019b)
geluApply Gaussian error linear unit (GELU) activation (Seit R2022b)
softmaxApply softmax activation to channel dimension (Seit R2019b)
sigmoidAnwenden der Sigmoid-Aktivierung (Seit R2019b)

Themen

Benutzerdefinierte Trainingsschleifen

Automatische Differenzierung