How to handle NaNs in the response data in deep neural networks?

조회 수: 2 (최근 30일)
I want to train a deep neural network for classifying images. In my database some samples correspond to "unknown" or "don't-care" classes. For the classic neural networks, the following link 
mentions that such classes can be represented by NaN. However, for deep neural networks that is not an option as the responses cannot contain any NaN as per:
How to handle NaNs in the response data in deep neural networks if my output response contains unknown values?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 10월 13일
편집: MathWorks Support Team 2021년 10월 13일
If you have data for "unknown" classes that you do not care about, you should remove them from the training set when using the deep neural networks.
The link mentioned in the question is for the classic neural networks and not deep neural networks. That page is referring to situations where you have a network with multiple outputs, but an instance only has a label for one those outputs. Then you can pass NaN for the labels for the other outputs, and the instance will only contribute to the loss for one of the outputs. This situation does not occur in deep learning yet because we do not support deep networks with multiple outputs.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by