How to use Classification layer for dlnetwork

20 ビュー (過去 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 Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by