ClassificationOutputLayer
R2026b(Not recommended) Classification output layer
ClassificationOutputLayer objects are not recommended. Use the
trainnet
function and set the loss function to "crossentropy" instead. For
more information, see Version
History.
To learn more about how to transition
trainNetwork, SeriesNetwork, and
DAGNetwork code to dlnetwork workflows, see Transition trainNetwork, SeriesNetwork, and DAGNetwork Code to dlnetwork Workflows.
Description
A classification layer computes the cross-entropy loss for classification and weighted classification tasks with mutually exclusive classes.
Creation
Create a classification layer using classificationLayer.
Properties
Examples
More About
References
[1] Bishop, C. M. Pattern Recognition and Machine Learning. Springer, New York, NY, 2006.
Version History
Introduced in R2016aSee Also
trainnet | trainingOptions | dlnetwork | softmaxLayer
Topics
- Create Simple Deep Learning Neural Network for Classification
- Train Convolutional Neural Network for Regression
- Train Sequence Classification Network Using Data with Imbalanced Classes
- Transition trainNetwork, SeriesNetwork, and DAGNetwork Code to dlnetwork Workflows
- Deep Learning in MATLAB
- List of Deep Learning Layers