gpt4 book ai didi

split - AttributeError: 'DatasetAutoFolds' 对象没有属性 'split'

转载 作者:行者123 更新时间:2023-12-03 23:47:05 26 4
gpt4 key购买 nike

enter image description here

来自使用惊喜模块的推荐引擎的代码,我在任何地方都找不到答案。

最佳答案

根据您的目标,您可以使用 cross_validation方法,它将自动为您执行拆分。示例:cross_validate(algorithm_to_use, data, measures=['RMSE'], cv=5)... cv=5告诉交叉验证迭代器如何拆分数据。

请参阅有关 Cross validation 的文档.

您也可以explore the model selection package for what you need .

在尝试帮助您找到解决方案时,上下文很重要。

关于split - AttributeError: 'DatasetAutoFolds' 对象没有属性 'split',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62046795/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com