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

We Are Going To Discuss About 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. So lets Start this Python Article.

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

  1. How to solve 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

    for pycaret 2.2.3
    exp_clf101 = setup(data = df, target = 'Survived', fold_shuffle=True, session_id=2)

  2. 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

    for pycaret 2.2.3
    exp_clf101 = setup(data = df, target = 'Survived', fold_shuffle=True, session_id=2)

Solution 1

for pycaret 2.2.3

exp_clf101 = setup(data = df, target = 'Survived',  fold_shuffle=True, session_id=2)

Original Author biomed Of This Content

Solution 2

You should try the following:

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


best=compare_models()

Original Author Parsyk Of This Content

Solution 3

Just had this issue. The problem was that scikit-learn version has had a major updated from version 0.X.X to 1.X.X, and Pycaret works with version 0.23.2.
Solution: re-install the older version in your env.

Original Author jaimebw Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment