# Diet\_classifier.py problem

**URL:** <https://forum.rasa.com/t/diet-classifier-py-problem/31949>\
**Category:** Rasa Open Source\
**Created:** [July 29, 2020, 1:20am UTC](https://forum.rasa.com/t/diet-classifier-py-problem/31949 "2020-07-29T01:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![almighty](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@almighty](https://forum.rasa.com/u/almighty)\
**Post date:** [July 29, 2020, 1:20am UTC](https://forum.rasa.com/t/diet-classifier-py-problem/31949/1 "2020-07-29T01:20:34Z")

</div>

rasa2.0/lib/python3.7/site-packages/rasa/nlu/classifiers/diet\_classifier.py:683: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify ‘dtype=object’ when creating the ndarray X\_dense\_sequence = np.array(X\_dense\_sequence)

how to slove this problem? Is my training data format has problem?

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [July 29, 2020, 8:03am UTC](https://forum.rasa.com/t/diet-classifier-py-problem/31949/2 "2020-07-29T08:03:05Z")

</div>

@almighty This is just a deprecation warning. You should be fine. We already have an [issue](https://github.com/RasaHQ/rasa/issues/6282) for it and we will try to fix it as soon as possible.
