gpt4 book ai didi

python - ValueError : Setting a random_state has no effect since shuffle is False. 您应该将 random_state 保留为其默认值(无),或设置 shuffle=True

转载 作者:行者123 更新时间:2023-12-04 11:43:57 31 4
gpt4 key购买 nike

当我尝试在 pycaret 中训练某些东西时,我收到此错误消息 ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True.

from pycaret.regression import *
clf1 = setup(data = df, target = 'Survived',train_size = 0.7, session_id = 2)

best=compare_models()

最佳答案

您应该尝试以下操作:

from pycaret.classification import *
clf1 = setup(data = df, target = 'Survived', train_size = 0.7, data_split_shuffle=True, session_id = 2)


best=compare_models()

关于python - ValueError : Setting a random_state has no effect since shuffle is False. 您应该将 random_state 保留为其默认值(无),或设置 shuffle=True,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67728802/

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