mattjj / pyslds

MIT License
90 stars 35 forks source link

"creating an ndarray from ragged nested sequences is deprecated" #33

Open yaohuiding1 opened 2 years ago

yaohuiding1 commented 2 years ago

Hi Matt, I got the following error message whiling the example code. I am using Python 3.8.10. I am wondering if there's a quick fix to this issue without going back to the previous version of Python.

"/home/yd169/.local/lib/python3.8/site-packages/pybasicbayes/distributions/regression.py:85: 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."

Thanks, Ding