# Not make a prediction

**URL:** <https://discuss.pytorch.org/t/not-make-a-prediction/67927>\
**Category:** Uncategorized\
**Created:** [January 28, 2020, 5:04pm UTC](https://discuss.pytorch.org/t/not-make-a-prediction/67927 "2020-01-28T17:04:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vainaijr](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vainaijr](https://discuss.pytorch.org/u/vainaijr)\
**Post date:** [January 28, 2020, 5:04pm UTC](https://discuss.pytorch.org/t/not-make-a-prediction/67927/1 "2020-01-28T17:04:44Z")

</div>

How to make my neural network not predict anything, for example if I am training on cat dog classifier, and in the dataset, there is one image, that is neither cat nor dog, image is noise, then instead of making an incorrect prediction, I want neural network to not make any prediction, like unattempted question.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [January 28, 2020, 7:50pm UTC](https://discuss.pytorch.org/t/not-make-a-prediction/67927/2 "2020-01-28T19:50:54Z")

</div>

You could treat this class as a special “unknown” class (and train your model to predict it for these noise images) or alternatively you could treat your use case as a multi-label classification, i.e. each class will get a probability and your model might output zero, one or multiple classes for each sample.
