ml-coursera-python-assignments
ml-coursera-python-assignments copied to clipboard
[warning] Deprecation Warning in Exercise 2
hi guys. I encountered this warning while checking exercise 2
ml-coursera-python-assignments/Exercise2/utils.py:45: 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.
return np.array(out)
This warning does not sound dangerous, but I thought it's good to inform you.
Thank you! Shouldn't be getting this warning, as all arrays used should be matrix-like.