'numpy.ndarray' object has no attribute 'pbest_fitness'
时间: 2023-10-11 08:10:06 浏览: 113
根据引用,错误信息显示'numpy.ndarray'对象没有'pbest_fitness'属性。这意味着你在一个NumPy数组上尝试访问'pbest_fitness'属性,但该属性不存在。可能原因是你没有正确定义或初始化该属性。你可以检查代码并确保在使用'pbest_fitness'之前正确定义和初始化它。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [AttributeError: ‘numpy.ndarray‘ object has no attribute ‘fill_betweenx](https://blog.csdn.net/zhongkeyuanchongqing/article/details/126412911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文