MATLAB: How to replicate the example “Transfer Learning Using AlexNet” with GoogleNet

Deep Learning Toolboxgooglenettransfer learning

I tried to replicate the example " Transfer Learning Using AlexNet " with GoogleNet, but i don't understand how to modify the last 3 layers in order to retrain the pretrained network. Maybe, has someone modify properly this example to work with googlenet?
I also found this link but doesn't exist now. (i'm working with Matlab 2018b)

Best Answer

The same code actually works with all the pretrained networks - just change the network that you load at the beginning of the example.
Related Question