How can I train a Convolutional Neural Network for a Regression task?

5 views (last 30 days)
I recently learned about Matlab's 2016a version having introduced CNN implementations and functions. What I want to ask is if it is possible to construct a CNN to fit a function (regression). Just like you would use 'fitnet' from Neural Network Toolbox. Can I train a new CNN to do that?

Answers (1)

Tejas
Tejas on 28 Oct 2024
Hello Ioannis,
A Convolutional Neural Network (CNN) can indeed be trained for regression tasks. This documentation provides an example of Convolutional Neural Network (CNN) used for regression task. In the example, CNN predicts the angles of rotation (regression task) for handwritten digits:
web(fullfile(docroot, "deeplearning/ug/train-a-convolutional-neural-network-for-regression.html"));

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!