# TrainVectorClassifier returns no result when using Artificial Neural Network

**URL:** <https://forum.orfeo-toolbox.org/t/trainvectorclassifier-returns-no-result-when-using-artificial-neural-network/1022>\
**Category:** OTB Usage\
**Created:** [April 21, 2021, 9:11am UTC](https://forum.orfeo-toolbox.org/t/trainvectorclassifier-returns-no-result-when-using-artificial-neural-network/1022 "2021-04-21T09:11:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Cedric](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@Cedric](https://forum.orfeo-toolbox.org/u/Cedric)\
**Post date:** [April 21, 2021, 1:05pm UTC](https://forum.orfeo-toolbox.org/t/trainvectorclassifier-returns-no-result-when-using-artificial-neural-network/1022/2 "2021-04-21T13:05:12Z")

</div>

Hello Raphael,

I just tried some to perform a classification using neural network and I encountered the same problem (all samples are classified as the first class). I think there is something wrong going on here. I need to investigate.

I the meantime you can try to use an older version of OTB, for example OTB-6.6.1. I managed to train a valid neural network classifier with this version and it should be compatible with QGIS. You can find it on the archive page : [Index of /packages/archives/OTB](https://www.orfeo-toolbox.org/packages/archives/OTB/)

Cédric

---

_[View the full topic](https://forum.orfeo-toolbox.org/t/trainvectorclassifier-returns-no-result-when-using-artificial-neural-network/1022)._
