8

当我尝试在 pycreat 中训练某些东西时,我收到此错误消息

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()
4

3 回答 3

2

对于 pycaret 2.2.3

exp_clf101 = setup(data = df, target = 'Survived',  fold_shuffle=True, session_id=2)
于 2021-07-08T05:05:18.863 回答
0

您应该尝试以下方法:

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


best=compare_models()
于 2021-05-27T21:33:34.737 回答
0

刚遇到这个问题。问题是 scikit-learn 版本已经从 0.XX 版本更新到 1.XX 版本,并且 Pycaret 与 0.23.2 版本一起使用
解决方案:在您的环境中重新安装旧版本。

于 2021-12-25T22:39:23.897 回答