Skip to content

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

@yaohuiding1

Description

@yaohuiding1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions