%% Load Pretrained VGG-16 Convolutional Neural Network
% Load a pretrained VGG-16 convolutional neural network and examine the layers and classes.
% Use vgg16 to load the pretrained VGG-16 network. The output net is a SeriesNetwork object.

net = vgg16

%
% View the network architecture using the Layers property. The network has 41 layers. There are 16 layers with learnable weights: 13 convolutional layers, and 3 fully connected layers.

net.Layers

%
% To view the names of the classes learned by the network, you can view the Classes property of the classification output layer (the final layer). View the first 10 classes by specifying the first 10 elements.

net.Layers(end).Classes(1:10)