TypeError: Mismatch between array dtype ('object') and format specifier ('%.18e')

前端 未结 4 3180
Happy的楠姐
Happy的楠姐 2020-12-29 04:36

I have the following array:

X = np.array([image_array_to_vector1,image_array_to_vector2,image_array_to_vector3,image_array_to_vector4])

A p

4条回答
  •  别那么骄傲
    2020-12-29 04:58

    I had the same error message, and it appeared that the problem was with arrays having different length. So you need to be sure to give the np.savetxt arrays of equal length.

提交回复
热议问题