How to use Classification layer for dlnetwork

조회 수: 7 (최근 30일)
MICHELE RUSSO
MICHELE RUSSO 2022년 3월 21일
답변: Prince Kumar 2022년 3월 30일
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?

답변 (1개)

Prince Kumar
Prince Kumar 2022년 3월 30일
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:

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by