regressionLayer
Create a regression output layer
Description
A regression layer computes the half-mean-squared-error loss for regression tasks.
returns a regression output layer for a neural network as alayer
= regressionLayerRegressionOutputLayer
object.
Predict responses of a trained regression network usingpredict
. Normalizing the responses often helps stabilizing and speeding up training of neural networks for regression. For more information, seeTrain Convolutional Neural Network for Regression.
sets the optionallayer
= regressionLayer(Name,Value
)Name
andResponseNames
properties using name-value pairs. For example,regressionLayer('Name','output')
creates a regression layer with the name'output'
. Enclose each property name in single quotes.