本文主要是介绍warnings.warn(f“Pass {args_msg} as keyword args. From version,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
warnings.warn(f"Pass {args_msg} as keyword args. From version
FutureWarning: Pass threshold=18 as keyword args. From version 0.25 passing these as positional arguments will result in an error
FutureWarning)
看了看代码,问题应该是这里:
# 创建二值化器
binarizer = Binarizer(18)
1
2
追着去看了看sklearn\utils\validation.py:71,基本确定了是应该这么写:
# 创建二值化器
binarizer = Binarizer(threshold=18)
https://blog.csdn.net/weixin_43896318/article/details/106220175
这篇关于warnings.warn(f“Pass {args_msg} as keyword args. From version的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!