您当前的位置: 首页 >  ar
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous.

一个处女座的程序猿 发布时间:2019-03-09 12:02:56 ,浏览量:0

成功解决preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous.

 

 

 

目录

解决问题

解决思路

解决方法

 

 

 

 

解决问题

preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.   if diff:

 

 

 

 

解决思路

preprocessing\label.py:151: 抛弃警告:空数组的真值是不明确的。返回False,但以后将导致错误。

 

 

 

 

 

解决方法

该问题是警告信息,不处理亦可运行程序,只需理解一下即可!但是,该库未来的升级版本中,需要检测是否为空数组,否则视为error! 使用`array.size > 0` 以检查数组是否为空。

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0581s