Python Forum
What is the cause of this error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the cause of this error?
#2
Use the editor buttons to make python and error tags.

The error message tells you exactly where and what the error is.
This is your error. On line 23 you used an "unexpected" keyword argument, "random_st":
search = RandomizedSearchCV(model, space, n_iter=500, scoring='accuracy', n_jobs=-1, cv=cv, random_st=1)
RandomizedSearchCV does not have a random_st argument. Id does have a random_state argument.

https://scikit-learn.org/stable/modules/...rchCV.html
ndc85430 likes this post
Reply


Messages In This Thread
What is the cause of this error? - by Led_Zeppelin - Jan-29-2023, 08:17 PM
RE: What is the cause of this error? - by deanhystad - Jan-30-2023, 04:04 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020