ml-coursera-python-assignments icon indicating copy to clipboard operation
ml-coursera-python-assignments copied to clipboard

[warning] Deprecation Warning in Exercise 2

Open AmirMohamadBabaee opened this issue 3 years ago • 1 comments

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.

AmirMohamadBabaee avatar Jun 04 '21 21:06 AmirMohamadBabaee

Thank you! Shouldn't be getting this warning, as all arrays used should be matrix-like.

dibgerge avatar Jul 15 '21 07:07 dibgerge