Difference between fitrnet and fitnet

64 views (last 30 days)
Alex Liu
Alex Liu on 19 Dec 2021
Answered: David Willingham on 20 Dec 2021
When I first learn to use neural networks, I usually used nnstart toolbox, which uses fitnet. However, when I started actually to build my own neural networks with more layers and optimal hyperparameters, I found that R2021a introduced fitrnet that looks more powerful. I was wondering what is the difference between these two neural network functions.

Answers (1)

David Willingham
David Willingham on 20 Dec 2021
Hi Alex,
Both fitnet and fitrnet use a legacy version of creating (shallow) neural networks. If you're looking to build your own customized neural networks, there is a newer framework for building shallow and deep neural networks. Here are 2 examples of how to do this:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by