📌  相关文章
📜  AttributeError: 'tuple' 对象没有属性 'reshape' - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.180000             🧑  作者: Mango

代码示例1
# from your definition, population is a tuple. 
# I'd suggest two options, the first is converting it to an array, 
# i.e.

population = np.asarray(population)