%% Create Regression Output Layer
% Create a regression output layer with the name 'routput'.

layer = regressionLayer('Name','routput')

% The default loss function for regression is mean-squared-error.
%
% Include a regression output layer in a Layer array.

layers = [ ...
    imageInputLayer([28 28 1])
    convolution2dLayer(12,25)
    reluLayer
    fullyConnectedLayer(1)
    regressionLayer]

% Copyright 2012 The MathWorks, Inc.