How to use Classification layer for dlnetwork

4 visualizaciones (últimos 30 días)
MICHELE RUSSO
MICHELE RUSSO el 21 de Mzo. de 2022
Respondida: Prince Kumar el 30 de Mzo. de 2022
I set up a custom training loop , and when i declare the layers i want to use, i cannot include Classificatio layer, otherwise i receive an erro which says "dlnework must not ha a return", i have to classify images so i need of that layer, so what should i do?

Respuestas (1)

Prince Kumar
Prince Kumar el 30 de Mzo. de 2022
Hi,
To implement a custom training loop for your network, first convert it to a dlnetwork object. Do not include output layers in a dlnetwork object. Instead, you must specify the loss function in the custom training loop.
Please refer the following documentation for more information:

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by